dll help...thsi is different then the other dll probeblem...

This is a discussion on dll help...thsi is different then the other dll probeblem... within the C++ Programming forums, part of the General Programming Boards category; OK now sence my dlls are working nice and fine I want to know something about them or something like ...

dll help...thsi is different then the other dll probeblem...

OK now sence my dlls are working nice and fine I want to know something about them or something like that. Now before I ask the question please DO NOT ask why I want to know this. Thank you.

Now for the question...

I got 2 dlls and the main file. I want 1 dll to lets say make a variable. (Do not ask why). And then put a value in to it.

Now... the second dll wants to use that variable after it has it's value set in to it and be able to use the varaible. but sence the variable was not created in the same dll file it will not compile. So how do I make like a global variable or something?

alright I think I got it but I am pretty sure there is a different way to do. In game maker all you had to do was put global.variablename and it was global. And sence I think game maker was made from c++ I think ti is possibel to somthing like that.