Hi. Sorry but I need your help again.
This is my code.
// Proyecto realizado con DarkGDK ; Project make with DarkGDK
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSetDir("media\");
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage( "laberinto1.bmp" , 1 ); //Bitmap size:128x128
dbPasteImage( 1 , 0 , 0 );
if (dbFileExist ("mapa.txt")==1) dbDeleteFile ("mapa.txt");
dbMakeFile ("mapa.txt");
dbOpenToWrite (1,"mapa.txt");
for (int fila=0;fila<128;fila++)
{
char *codigo = new char [128];
for (int columna=0;columna<128;columna++)
{
if (dbPoint(fila,columna)==0) codigo [columna] = '0'; else codigo [columna] = '1';
}
dbWriteString ( 1 , codigo);
delete [] codigo;
}
dbCloseFile ( 1 );
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
No errors during compilation, but the file "mapa.txt" is empty. Why?
Yet I am not very familiar with the use of pointers, and I've watched several tutorials but I have not found the solution.
I like to use only commands DarkGDK, if possible.
Greetings. (Translate by google translator)