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?

did you include the image in the solution explorer?

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.