Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Startup from DLL

Author
Message
vapor
15
Years of Service
User Offline
Joined: 27th May 2009
Location:
Posted: 28th May 2009 02:49
I created a project via the vc++ wizard for a generic darkgdk game. I want to use this as part of .dll however, so I changed the project output type to dynamic dll.

Everything compiles as expected, but when using this dll in my C++ project from a seperate .exe project, i include the reference and call my StartGame (which calls DarkGDK, as implemented in the samples).

The program runs... but I don't see a window on the screen. Is there a way to startup via a method in the dll?

Thanks for the help.
ABXG
15
Years of Service
User Offline
Joined: 1st Apr 2009
Location: Canada
Posted: 28th May 2009 08:28
If you want to make a .lib or .dll file you need to actually create a library or DLL project in VC++ right from the get go. These projects contain nothing but functions/classes/structures. There is no entry point in one of these files.

------------------------------------
Currently 1500+ lines of code into an "over-the-shoulder" action RPG with combat based on rag-doll physics.

Login to post a reply

Server time is: 2024-10-01 03:29:28
Your offset time is: 2024-10-01 03:29:28