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 / Darkbasic SDK and Window Forms?

Author
Message
Give it all you got
18
Years of Service
User Offline
Joined: 17th Nov 2006
Location: USA
Posted: 29th Nov 2006 02:01
Does the Darkbasic SDK, which is only C++, support window forms in your game. Like can you have window forms displayed in your game.
Can you use the .NET C++ Window Forms, than besides MFC or Win32.
I want somebody to answer this question that knows about this.

Thanks,

Give it all you got

G4G
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 29th Nov 2006 10:12 Edited at: 29th Nov 2006 10:15
DGDK.NET allows support for Winforms applications, and there is a sample that demonstrates this procedure.

For the C++ version, this is slightly more complicated since a dialog resource needs to be used as the basis for your application. Thing is, creating a normal MFC or Win32 application that exposes a WinMain function, will cause linker symbol confliction. By creating your own window and window procedure, you can then use the dbOverrideHWnd and dbSetDisplayMode functions in that order, specifying a window's handle to render the DGDK window, has the desired effect.

[EDIT] The window procedure is optional

Paul.

Login to post a reply

Server time is: 2024-11-19 09:27:18
Your offset time is: 2024-11-19 09:27:18