Gamestudio Links
Zorro Links
Newest Posts
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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, Power_P), 1,065 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: WritePrivateProfileString [Re: Uhrwerk] #409981
10/26/12 02:04
10/26/12 02:04
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Sometimes I wish this forum was like Stack Overflow just so that I can upvote Uhrwerks comments and give him the reputation he deserves frown
(Yes, no constructive content in this post. Just some good old bootlicking)


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: WritePrivateProfileString [Re: Uhrwerk] #409990
10/26/12 10:55
10/26/12 10:55
Joined: Nov 2011
Posts: 139
India
Yashas Offline OP
Member
Yashas  Offline OP
Member

Joined: Nov 2011
Posts: 139
India
@Uhrwerk I have not reviewed the code yet, I just use some random numbers,silly errors because this is my scale application not the final.

I would correct those those when I make it.
Thanks!!

And "That's nonsense. It works perfectly fine with Lite-C."
Could you give me an simple example of code becaz when ever I try I can't get it right.

Now, I have started off with my own INI Lib(currently able to find a item in the section and return its value laugh )


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages
Re: WritePrivateProfileString [Re: Yashas] #410007
10/26/12 14:17
10/26/12 14:17
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Originally Posted By: JustSid
Sometimes I wish this forum was like Stack Overflow just so that I can upvote Uhrwerks comments and give him the reputation he deserves frown

Wow. Thank you. crazy smile I guess I'll print that and read it whenever I need motivation.

Originally Posted By: Yashas
Could you give me an simple example of code becaz when ever I try I can't get it right.

Code:
#include <acknex.h>
#include <windows.h>

STRING* ini_file = "";

void main()
{
	str_cpy(ini_file,work_dir);
	str_cat(ini_file,"\\test.ini");
	if (WritePrivateProfileString("MySection","MyKey","MyValue",ini_file->chars))
		printf("That was an easy one.");
	else
		error("Oh dear, something went wrong!");
}


The only pitfall here is that you need to have the necessary privileges to write to the directory where you create the ini file. Note that depending on your operating system you don't have these rights for every folder.


Always learn from history, to be sure you make the same mistakes again...
Re: WritePrivateProfileString [Re: Uhrwerk] #410010
10/26/12 15:45
10/26/12 15:45
Joined: Nov 2011
Posts: 139
India
Yashas Offline OP
Member
Yashas  Offline OP
Member

Joined: Nov 2011
Posts: 139
India
Thanks laugh
+1 if there was a feature for reputation laugh


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages
Page 2 of 2 1 2

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