Advertisement Jump to content
Sign in to follow this  

DLL sharing static variable??

This topic is 4872 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, My question is a little complex. I made a dll. Let say t.dll It have a global variable : int v1; For internal dll use. Them, I use this dll in another dlls. In f.dll and o.dll And those two dll are used by e.dll Ok, so now I have e.dll | +--f.dll |...| |...+--t.dll | +--o.dll .....| .....+--t.dll So the question is, do the int v1; will be shared by f and o? I mean the same variable? Because of my real scenario : dkt are for texture loading dkf for font dko for model and dke the engine So font and model need to load textures using dkt and dkt have a static list of all loaded textures, for not loading the same twice. So including this way up, it will be one unique list or two?? thanks!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!