Advertisement

Window creation crash

Started by July 04, 2003 09:15 AM
3 comments, last by platonman1 21 years, 8 months ago
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
My english is not the best... I already know that :)
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.
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Advertisement
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...
My english is not the best... I already know that :)
It''ll just overcomplicate things...
OK, but I would just know how I could do it, just 4 fun...
My english is not the best... I already know that :)

This topic is closed to new replies.

Advertisement