Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Zipster

Saving Dialog Resources as External Files

This topic is 6621 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

This is a simple question. Usually, resources are just tacked on to the end of the executable. However, is there any way I can load a resource, specifically dialog boxes, from a seperate file? I want to have a file that contains just dialog boxes, a file that contains just icons, etc., and then load them in (which is another ''How To'' question since they''d be in an external file). ======================================= A man with no head is still a man. A head with no man is plain freaky.

Share this post


Link to post
Share on other sites
Advertisement
Have you tried using DLL files. One dll for icons, one for dialog boxes...etc...

You can use the functions like LoadIcon(hDLL, ...), where the hDLL = LoadLibrary().
I haven''t tried it yet, but it should work...



Share this post


Link to post
Share on other sites
Try the windows ''FindResource'' and ''LoadResource'' functions. You can compile your resources in a separate project with the resource compiler. If I remember, you end up with a handle to your resource.

There used to be a way to make your dialog boxes on the fly using a ''dialog template''. That may still be valid, but that doesn''t sound like what you''re looking for.

information is the illusion of knowledge

Share this post


Link to post
Share on other sites

  • 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!