Well I tried something like this:
#include "DarkGDK.h"
#include "ielade.h"
#include "krist.h"
#include "anime.h"
#include <cstdio>
Buffer char[255];
bool valid = true;
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbDisableEscapeKey ( );
dbSetImageColorKey ( 255, 0, 255 );
load1();
while ( LoopGDK ( ) )
{
sprintf(Buffer, "valid is: %d", valid);
dbText(10, 20, Buffer);
playermove();
anime();
if ( dbEscapeKey ( ) )
break;
dbSync ( );
}
// delete all the sprites
for ( int i = 1; i < 120; i++ )
{dbDeleteSprite ( i );
dbDeleteImage ( i );}
return;
}
And it displayed error message :
error C2664: 'dbText' : cannot convert parameter 3 from 'int' to 'char *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast