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 / dbReadString() not working?

Author
Message
tparkin
17
Years of Service
User Offline
Joined: 28th Mar 2007
Location:
Posted: 1st Jul 2007 04:17
Hi,

Trying to read from a file using dbReadString and it's not returning anything.

Here's the code:



You can see my commented out lines to use dbReadByte() instead. That works fine. What's busted with dbReadString() or what am I doing wrong?

Thanks.
m2zt
18
Years of Service
User Offline
Joined: 12th Nov 2005
Location:
Posted: 2nd Jul 2007 03:08
Yeah it works.

You could do it two ways that I know of. One using pointers or just using dbPrint.



or



Futurama 2008
tparkin
17
Years of Service
User Offline
Joined: 28th Mar 2007
Location:
Posted: 3rd Jul 2007 00:40
Ok, Thanks.

Why does it take in a character array if it doesn't fill it and instead just returns a character pointer?

That makes no sense at all.

Login to post a reply

Server time is: 2024-09-29 01:16:17
Your offset time is: 2024-09-29 01:16:17