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 / Hello world tutorial

Author
Message
Slim420
15
Years of Service
User Offline
Joined: 15th Mar 2009
Location:
Posted: 16th Mar 2009 02:35
Hello, I have just installed Dark GDK and was going through the first tutorial and i encountered a problem right away :S .

The first initial run works fine, but when i add the fist bit of code, to where my program looks like this:



but when i debug and run it, it just gives me a blank screen. No build errors, or debug errors, but the image doesnt load, and my whole computer lags very bad to the point my mouse freezes every couple of spaces.

Can anyone help me out please?

Thanks.
vocebello
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: Toronto, Canada
Posted: 16th Mar 2009 08:05
Your code runs fine with me.

Is your computer capable of running DarkGDK? Minimum system requirements are here http://gdk.thegamecreators.com/?f=system_requirements.

I can't see any other reason why it would not work?

[ freelance DarkGDK coder ]
Slim420
15
Years of Service
User Offline
Joined: 15th Mar 2009
Location:
Posted: 16th Mar 2009 15:18
Thank you for your response. Actually i had not checked the prerequisites, just the dependent software. I guess i was just so used to everything working that i hadnt needed to check system requirements :S . The only requisite that i am short of is my graphics card, its only 64mB (where as the minimum req's are 128).

However, before i got this reply i had uninstalled the DX SDK, and Dark GDK and reinstalled both. Now i have a slight lag (maybe 3 seconds, longer if anything else is any graphics memory) when i first run the program until the image loads. So hopefully whatever complication that was stopping it from loading before and almost freezing my whole system, has been addressed . I havent gone any further in the tutorial to see if im going to have graphics card issues in the future, but for now everything seems good to go, im going on to the next step now....

Wish me luck

Thanks for your reply
six pack will
15
Years of Service
User Offline
Joined: 16th Mar 2009
Location:
Posted: 17th Mar 2009 00:09
I was following the tutorial exactly and when I debugged it said

c:\documents and settings\doug\my documents\visual studio 2008\projects\hello world1\hello world1\main.cpp(6) : error C2065: '“animatedsprite1' : undeclared identifier
c:\documents and settings\doug\my documents\visual studio 2008\projects\hello world1\hello world1\main.cpp(6) : error C2228: left of '.png”' must have class/struct/union
type is ''unknown-type''
What went wrong and what should I change?
Bruce Dudeson
15
Years of Service
User Offline
Joined: 17th Mar 2009
Location:
Posted: 17th Mar 2009 12:50
Change “animatedsprite.png” to "animatedsprite.png" when copying from the pdf you get instead “”of "" your char * should show up with red syntax highlighting.
six pack will
15
Years of Service
User Offline
Joined: 16th Mar 2009
Location:
Posted: 18th Mar 2009 02:27
Thank you so much it finally works.I really am thankful of your help.

Login to post a reply

Server time is: 2024-11-25 17:38:08
Your offset time is: 2024-11-25 17:38:08