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 / darkgdk with c++

Author
Message
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 20th Apr 2009 20:05
i've been trying long and searched the forum for the answer but got nothing...
my question is ..when i try to include visual c++ include files along with darkgdk it doesn't work is there anyway to make it work?
DaddyJ
15
Years of Service
User Offline
Joined: 17th Mar 2009
Location:
Posted: 20th Apr 2009 20:35
Whats the error you get, did you add the include paths?
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 20th Apr 2009 20:38
yeah i did .. but it seams some definitions are the same in darkgdk libraries and some VC++ libraries ..
this is a sample of code that didn't work the error is 19 duplicate definitions


#include <iostream>
#include "DarkGDK.h"

void main( void ){
std::cout << "fadi";
dbWait(1000);
return;
}
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 20th Apr 2009 21:47
First off, you need to use "void DarkGDK(void)" instead of main, or else the db commands will not work. To solve your problem, build and run in release mode instead of debug mode to get rid of the extra errors. By the way, cout will not do anything since it is only supposed to be used in a command window.

#ifdef _DEBUG
FixBugs(All);
#endif
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 20th Apr 2009 22:08
thx for your help i know cout won't do anything and i know that void darkGDK needed.. but i was trying different solutions to my problem..... what solved it is debbuging and running in release mode thanks so much for the help

Login to post a reply

Server time is: 2024-09-30 23:17:42
Your offset time is: 2024-09-30 23:17:42