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 / File error

Author
Message
Fox Dark Master
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Portugal
Posted: 25th Dec 2007 21:01 Edited at: 25th Dec 2007 21:33
I've a strange error with files, which could be my mistake or something that i'm missing here:



This code works fine but if code it to open and get data from a file it gives me error:


Here's the error:


thanks for the time



Tugapod
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 26th Dec 2007 05:22
Lots of experimenting is needed there - like one data type I recall (for file read...byte I think...forget now but...) I had to make a variable "to get" the data as the file read function didn't return a value, and Passing this "target" variable didn't work until I used the address of qualifier... Something like dbFileReadByte(fileId, &target);

Another alternative in the mean time - just to get by is to only write strings - single line - with dbWriteFileString(Id, "Some String");
and read the data back in this way also - see dbStr(MyFloat) etc...

Fox Dark Master
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Portugal
Posted: 26th Dec 2007 12:20
Lol Get-type functions, well didn't occour to me since my code is in a class but let me try

thxs



Tugapod

Login to post a reply

Server time is: 2024-10-08 15:54:55
Your offset time is: 2024-10-08 15:54:55