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.

DarkBASIC Professional Discussion / Registry question...

Author
Message
iaretony
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 9th Sep 2003 22:39
Is their any reason why I couldn't store say 30 variables in the registry? The reason I ask is that my game really only needs permanent storage for the high score table, and I think I'd just rather store the names and scores in the registry?

BTW, I hear that with Window's XP Home, applications under "Program Files" cannot write to ANY file in the "Program Files" tree. Where are you supposed to write files now?

Tony

OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 9th Sep 2003 23:10
Use INI files - for a start, they dont use the registry (allows very easy transfer over to other computers).

In addition, if you use my INI plug-in, it can write to a special area (that only I know of), but allows global access.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 10th Sep 2003 02:02
You don't even need to use ini files for 30 variables.
Just write them to the file and read them in the reverse order. You might also want to look at using some form of simple encription
Also look at the load/save array commands.

I can write files to the windows xp home programs files directory using programs in it. If the user doesn't have permission to write to program files how are they going to install your program there in the first place?
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 10th Sep 2003 02:05
no need for ini files use the write string to registry command

>>TerraByte. Putting the Byte back into Terragramming<< If my post has less than 20 typos then it wasnt me who wrote it!
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 10th Sep 2003 02:08
Quote: "use the write string to registry command"

Which may or may not work.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester

Login to post a reply

Server time is: 2026-07-25 08:12:31
Your offset time is: 2026-07-25 08:12:31