Jump to content
  • Advertisement
Sign in to follow this  
Daivuk

DLL sharing static variable??

This topic is 4809 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!