dark GDK

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Sep 2008
Posts: 369
Reputation: tomtetlaw is an unknown quantity at this point 
Solved Threads: 4
tomtetlaw's Avatar
tomtetlaw tomtetlaw is offline Offline
Posting Whiz

dark GDK

 
0
  #1
Jan 8th, 2009
i am doing the 'getting started' tutorial that comes with the dark gdk, and i ran into this error:
c:\documents and settings\tom\my documents\visual studio 2008\projects\hello world\hello world\main.cpp(6) : error C2065: '“animatedsprite' : undeclared identifier

heres my code(that i copied from the pdf):
  1. #include "DarkGDK.h"
  2. void DarkGDK ( void ){
  3. dbSyncOn ( );
  4. dbSyncRate ( 60 );
  5.  
  6. dbCreateAnimatedSprite ( 1, “animatedsprite.png”, 4, 4, 1 );
  7. dbSprite ( 1, 0, 0, 1 );
  8.  
  9. while ( LoopGDK ( ) ){
  10. dbPlaySprite ( 1, 1, 16, 200 );
  11. dbSync ( );
  12. }
  13. return;
  14. }

any help?
Last edited by tomtetlaw; Jan 8th, 2009 at 3:26 am.
...
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 79
Reputation: MatEpp is an unknown quantity at this point 
Solved Threads: 12
MatEpp MatEpp is offline Offline
Junior Poster in Training

Re: dark GDK

 
0
  #2
Jan 8th, 2009
did you include the image in the solution explorer?
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1
Reputation: springwater is an unknown quantity at this point 
Solved Threads: 0
springwater springwater is offline Offline
Newbie Poster

Re: dark GDK

 
0
  #3
Jan 13th, 2009
Ahh.... I also had this problem, If you look closely you will see that the quotations are a different style in the PDF so the file animatedsprite.png does not compute, just erase them and retype!



Originally Posted by tomtetlaw View Post
i am doing the 'getting started' tutorial that comes with the dark gdk, and i ran into this error:
c:\documents and settings\tom\my documents\visual studio 2008\projects\hello world\hello world\main.cpp(6) : error C2065: '“animatedsprite' : undeclared identifier

heres my code(that i copied from the pdf):
  1. #include "DarkGDK.h"
  2. void DarkGDK ( void ){
  3. dbSyncOn ( );
  4. dbSyncRate ( 60 );
  5.  
  6. dbCreateAnimatedSprite ( 1, “animatedsprite.png”, 4, 4, 1 );
  7. dbSprite ( 1, 0, 0, 1 );
  8.  
  9. while ( LoopGDK ( ) ){
  10. dbPlaySprite ( 1, 1, 16, 200 );
  11. dbSync ( );
  12. }
  13. return;
  14. }

any help?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC