Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How can you save all your settings?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Mar 14, 2008 9:54 pm    Post subject: How can you save all your settings? Reply with quote

Ok, I have just made Daily Helper v.1.8 (In my signature is Daily Helper v.1.5).

I want to save all the settings a user puts into it. So next time the application is opened, those settings have been in there. I think this question was asked before but not answered.

If there is a code, and not just a setting, where would I put the code? Form Load? A Button that says "save settings"?

Please don't just provide me with a link, and actually explain it to me.

Thanks...

_________________
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Fri Mar 14, 2008 9:58 pm    Post subject: Reply with quote

You should use either XML or the Registry.

Whichever you choose, there are ample tutorials on the web.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Mar 14, 2008 9:59 pm    Post subject: Reply with quote

samuri25404 wrote:
You should use either XML or the Registry.

Whichever you choose, there are ample tutorials on the web.


Would just creating a registrykey allow for a user to save settings?

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Mar 14, 2008 10:12 pm    Post subject: Reply with quote

Create your own key in HKEY_CURRENT_USER if you're going to use the registry. It's easy as hell in .NET
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Mar 14, 2008 10:16 pm    Post subject: Reply with quote

slovach wrote:
Create your own key in HKEY_CURRENT_USER if you're going to use the registry. It's easy as hell in .NET


Yeah I know. Thats why I asked if just creating one would save settings. Thanks for the help guys. Very Happy

_________________
Back to top
View user's profile Send private message
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Sat Mar 15, 2008 2:25 am    Post subject: Reply with quote

No, just creating a registry key wont be everything you need.

For example: when your application closes (or every time something important happens) you need to save what-ever variables need saving to the registry (or whatever you decided on). And obviously you need to load these variables from the registry when needed, for example when you start your application.

Hope that helps.
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Sat Mar 15, 2008 4:11 am    Post subject: Reply with quote

I prefer using INI or XML files.

I don't like when people touch my registry.
Back to top
View user's profile Send private message
jason744
Grandmaster Cheater
Reputation: 0

Joined: 25 Nov 2007
Posts: 638

PostPosted: Sat Mar 15, 2008 4:37 am    Post subject: Reply with quote

Just do it the way I did.

The settings tab in My Project Razz

And I can't be bothered typing the rest.
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sat Mar 15, 2008 7:00 am    Post subject: Reply with quote

HolyBlah wrote:
I prefer using INI or XML files.

I don't like when people touch my registry.


INI are out of date, and have lost support.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Mar 15, 2008 8:16 am    Post subject: Reply with quote

Just because they're out of date, doesn't mean that you can't use them. But, I guess now a days you should use the registry more than ini files.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites