Jump to content
  • Advertisement
Sign in to follow this  
LowRad

CreateDialog failed from a static lib...

This topic is 4614 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 all, I am currently trying to add a nice little configuration dialog to my engine. Everything is compiling and linking fine. But when i call CreateDialog with the appropriate parameters it is returning NULL. The error code returned is 1812: The specified image file did not contain a resource section. As i red on the internet on the few posts i found about that, they were stating that a static lib do not contain any data section, meaning the Dialog Template is not getting included into the final lib. My question is: - Is all that informations founded ? - Is there any workaround? - Is building my engine into a lib is a good idea? It's make so long that i didnt code in C++/Win32, you're getting used easily to the sweet .NET api ;) Thank for your help, Jonathan

Share this post


Link to post
Share on other sites
Advertisement
I hadn't heard that before but it does make a certain about of sense, if you want that information included you can make a .dll instead of a .lib (.lib's are code only, whereas .dll's are just like .exe's).

As a general rule you shouldn't create GUI elements in a library though. Provide the information and functions to set it and let the user create the interface.

Share this post


Link to post
Share on other sites
Quote:
Original post by Shannon Barber
I hadn't heard that before but it does make a certain about of sense, if you want that information included you can make a .dll instead of a .lib (.lib's are code only, whereas .dll's are just like .exe's).

Is it alot more work to create a .dll instead of a static lib. Or it is as easy as building and using a lib for an existing project?
Quote:
Original post by Shannon Barber
As a general rule you shouldn't create GUI elements in a library though. Provide the information and functions to set it and let the user create the interface.

This is an interessting comment, in fact, even if you tell me than dll and lib are not that different, i'll probably change the design a bit to give the user more freedom to create his own dialog using the provided set of functions...

Thanks for commenting,
Jonathan

Share this post


Link to post
Share on other sites
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!