Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Using dbWriteString.

Author
Message
IsGreen
16
Years of Service
User Offline
Joined: 4th Oct 2008
Location:
Posted: 24th Oct 2008 22:00 Edited at: 24th Oct 2008 22:45
Hi. Sorry but I need your help again.

This is my code.



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)
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th Oct 2008 00:07
Get rid of the dbMakeFile function - it's almost the most useless command provided, and does nothing except create an empty file.

Because it's there, the dbOpenToWrite function is failing, because it won't open the file if the file already exists.

TBH, I'd ditch the GDK file I/O functions - take a look at the C++ and C I/O functions for a mush faster and flexible set of commands.

IsGreen
16
Years of Service
User Offline
Joined: 4th Oct 2008
Location:
Posted: 25th Oct 2008 18:02
I thought that the order dbOpenToWrite required that the file exists, but I thought wrong.

Thank you very much.

Login to post a reply

Server time is: 2024-11-25 05:45:30
Your offset time is: 2024-11-25 05:45:30