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 / VS help

Author
Message
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 18th Sep 2005 20:44 Edited at: 18th Sep 2005 20:58
Hi,

Sorry my last post seems to have gone walkies, so let me try again with a short version.

Could anyone tell me if it's possible to run a non-sdk program as the main program in an existing project that was created with the SDK wizard? If so, how do I it?

I have a project with two cpp files. The first is the one containing the dark sdk entry point. This is the one that runs when I press the "run" arrow (or the "run without debug button"). I want to select the other file (which is a test harness for my inventory prog) to be the one to run when either of these buttons are pressed. And I'd like to alternately select them as required.

Is there some config option where I can do this, rather than having to have a separate project for non-sdk helper progs?

Thanks a million,

T.
zao420
20
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 19th Sep 2005 03:58
don't remember if this is the same is vs6 but in vs .net just right click on the solution file at the top of the projects list, and go to properties, then check change the single start up program.

http://cavesoft.no-ip.com
WIP Version of my site. Usally it is offline.
http://dev-cavesoft.no-ip.com
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 19th Sep 2005 12:22
Thanks zao, unfortunately that changes the startup "project" not program. And it won't let me change that either. The drop-down list only contains the name of the current project and it is uneditable. So it looks like that isn't the solution unless I'm doing something wrong. Thanks for the help anyway.

T.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Sep 2005 22:54
Well, allegedly, something like this works: http://forum.thegamecreators.com/?m=forum_view&t=45658&b=22

Never tried it myself, so I don't know for certain. Once thing I do know is that it can be a darned sight shorter.



You'll need to test it to tell for certain though.

Just call your own function instead of WinMain to get your initial window open, and only call the WinMain function when you want to enter the DSDK code.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 20th Sep 2005 12:10
Thanks Ian, I'll give it a go. Looks like a recipe for more black screens that do nothing until you reboot though

T.

Login to post a reply

Server time is: 2024-04-26 13:18:48
Your offset time is: 2024-04-26 13:18:48