Jump to content
  • Advertisement

Archived

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

platonman1

Window creation crash

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

Hello everyone, Why does my program crash when I try to create a Window from a DLL ??? A cut n pasted Nehe code into my DLL, and nothing works... Thanks for help

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by platonman1
A cut n pasted Nehe code into my DLL, and nothing works...



This sentence sounds funnier once you''ll understand what you just said

Have you ever created a dll before? Foremost, why on earth would you want to call the window class from a dll. I understand calling some image format loader from a dll as a plugin, but the window class should most definitely be a part of your main application.

Dll''s are built differently than standard executables and function addresses need to be obtained from them using GetProcAddress(). If you''re not familiar with this function, you''ll be better off reading some tutorials on dll''s (GameDev should have at least one). Neither can you export class objects from a dll.

If you''re familiar with the concept of creating a dll, posing a well defined problem will usually make it easier for people help you.

Share this post


Link to post
Share on other sites
LOL No, thats not what i wanted to say... :-P

And i believe it will be simpler to create my OpenGL window from my main program...

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!