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 / I can't load .png image

Author
Message
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 12th Nov 2009 11:57
Hi,
This is my first time using GDK, i'm trying learn GDK first tutorial "Hello World", i reach loading .png with functions:

dbLoadImage ( “animatedsprite.png”, 1 );
dbSprite ( 1, 0, 0, 1 );

I placed .png image in the same project directory, but when i press start debugging the compiler game me error:

------ Build started: Project: Hello World, Configuration: Debug Win32 ------
Compiling...
Main.cpp
c:\users\iammfa\documents\visual studio 2008\projects\hello world\main.cpp(16) : error C2065: '“animatedsprite' : undeclared identifier
c:\users\iammfa\documents\visual studio 2008\projects\hello world\main.cpp(16) : error C2228: left of '.png”' must have class/struct/union
type is ''unknown-type''
Build log was saved at "file://c:\Users\iammfa\Documents\Visual Studio 2008\Projects\Hello World\Debug\BuildLog.htm"
Hello World - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

where is my bug here
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 12th Nov 2009 12:53
retype

Quote: "dbLoadImage ( “animatedsprite.png”, 1 );"


Its because of the font used in the tutorial or something.
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 12th Nov 2009 13:10
That's Right, I fixed that ..
thanks puppy of kosh

regards
iammfa

Login to post a reply

Server time is: 2024-10-01 16:43:20
Your offset time is: 2024-10-01 16:43:20