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?

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.