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 / drawing functions not being recognized

Author
Message
pizzamix
15
Years of Service
User Offline
Joined: 27th Jan 2009
Location:
Posted: 27th Jan 2009 23:18
Hello, i'm new to programming and GDK, but i am taking several programming courses in school, and i wanted to try my hand at game-making.
i am following one of the tutorials on the site, and in one of the steps the writer uses code such as:

box 100,100,540,380

and

For boxCount=1 to 10 step 2
left=boxCount*10
top=10
right=left+5
bottom=30
box left, top, right, bottom
next boxCount

whenever i try to compile a program with these functions, VC says it does not recognize them, and the program just exits.
What can i do about this? thanks for any help!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Jan 2009 00:05
What you have written there is BASIC from either DBC or DBPro, not C++.

In C++, it would be something like:


Login to post a reply

Server time is: 2024-09-30 17:35:05
Your offset time is: 2024-09-30 17:35:05