0

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):

#include "DarkGDK.h"
void DarkGDK ( void ){
	dbSyncOn ( );
	dbSyncRate ( 60 );

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

	while ( LoopGDK ( ) ){
		dbPlaySprite ( 1, 1, 16, 200 );
		dbSync ( );
	}
	return;
}

any help?

3
Contributors
2
Replies
4
Views
8 Years
Discussion Span
Last Post by springwater
0

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!


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):

#include "DarkGDK.h"
void DarkGDK ( void ){
	dbSyncOn ( );
	dbSyncRate ( 60 );

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

	while ( LoopGDK ( ) ){
		dbPlaySprite ( 1, 1, 16, 200 );
		dbSync ( );
	}
	return;
}

any help?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.