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 / (noob) File data Input/Output help

Author
Message
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 16th Feb 2008 06:20 Edited at: 17th Mar 2013 21:19
I'm new to using GDK and C++ and absolutly have no clue how the db I/O commands are supose to be used. Keep getting errors and can't seem to find any working examples as well, can anyone share some simple examples?

I need to be able to just save a few data for an RPG type game "Stats-HP/MP/ETC" and read it afterwards.

I'm not sure if Tutorials cover this, if it does point me out.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Feb 2008 13:47
My suggestion in two words: don't bother.
Stick to the standard C or C++ file IO and you'll find life a lot easier.

C File I/O
C++ File I/O

Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 16th Feb 2008 14:37 Edited at: 17th Mar 2013 21:19
Wow thanks a bunch, now I can continue on smashing away at the keyboard.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 18th Feb 2008 06:10 Edited at: 13th Jan 2013 00:29
Can anyone explain why I can't run this simple I/O code? Im using Visual C++ 2008.



Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 18th Feb 2008 18:46 Edited at: 22nd Jan 2013 01:51
Ok nevermind I found out what was the problem from another page here.

For anyone else who needs to know, you have to "Properties>Code Generation>Runtime Library>" and change the "Multi-thread Debug(/MTD) >to> Multi-thread(/MT)".

Login to post a reply

Server time is: 2026-07-26 22:21:36
Your offset time is: 2026-07-26 22:21:36