Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (SBGuy, Quad), 768 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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