Advertisement Jump to content


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


Saving Dialog Resources as External Files

This topic is 6718 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
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, 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!