Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, kzhao, alibaba, 7th_zorro), 650 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ini file parsing #125065
04/19/07 19:42
04/19/07 19:42
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline OP
Expert
Joey  Offline OP
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
i've written an ini file parser where you can read ini files separated by [sections] and name=value pairs.

http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/746281/an/0/page/0

i haven't tested it, though, so i would be pleased if someone could do this for me.
greetings, joey.

Re: ini file parsing [Re: Joey] #125066
04/21/07 00:43
04/21/07 00:43
Joined: Oct 2003
Posts: 1,258
Virginia, USA
qwerty823 Offline
Senior Developer
qwerty823  Offline
Senior Developer

Joined: Oct 2003
Posts: 1,258
Virginia, USA
The api.def already has the winapi functions defined for reading/writing ini files.

GetPrivateProfileInt;kernel32!GetPrivateProfileIntA
GetPrivateProfileString;kernel32!GetPrivateProfileStringA
WritePrivateProfileString;kernel32!WritePrivateProfileStringA
GetPrivateProfileSection;kernel32!GetPrivateProfileSectionA
WritePrivateProfileSection;kernel32!WritePrivateProfileSectionA


Never argue with an idiot. They drag you down to their level then beat you with experience
Re: ini file parsing [Re: qwerty823] #125067
04/21/07 11:54
04/21/07 11:54
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline
User
sheefo  Offline
User

Joined: Jul 2006
Posts: 783
London, UK
I use those API functions. You can make an INI parser in under 20 lines of code.
You can even save settings

Re: ini file parsing [Re: sheefo] #125068
04/21/07 16:33
04/21/07 16:33
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline OP
Expert
Joey  Offline OP
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
there's always an easier way to acheive things


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1