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 / Source File

Author
Message
The Master
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 1st Feb 2008 22:04
I was trying to run this simple line of code:




But when I go to build it is says "error, did you forget to incluse
stdafx.h in your source" can anyone help? Oh, I'm new at this, so when
at the beginning of a line if it says db, does it mean its a Dark Basic Pro command? Thanks

monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 4th Feb 2008 01:05 Edited at: 4th Feb 2008 01:06
There is two immediate errors with that line of code, a literal string value should be enclosed in double quotation marks, and you should terminate the line with a semi-colon.

e.g.


I would strongly recommend that you get a book on C++ programming or read some online tutorials, otherwise you are gonna be banging your head against the wall pretty soon.

The Sun is trying to kill me!
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 4th Feb 2008 01:15
Quote: "But when I go to build it is says "error, did you forget to incluse
stdafx.h in your source" can anyone help? Oh, I'm new at this, so when
at the beginning of a line if it says db, does it mean its a Dark Basic Pro command? Thanks"


Is that your whole souce file?

You forgot to include the GDK header, and set up a main() function if it is.

Your signature has been erased by a mod
Usukhuu
16
Years of Service
User Offline
Joined: 10th Jan 2008
Location:
Posted: 4th Feb 2008 05:03
hey it's not php .

Login to post a reply

Server time is: 2024-11-20 01:24:17
Your offset time is: 2024-11-20 01:24:17