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 


[Delphi]Saving

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Aug 21, 2007 10:22 am    Post subject: [Delphi]Saving Reply with quote

as the title says... how to i save? :O
i mean lets say i type in the edit box asdfqwer and i want to close and continue later...
or like if u changed something it saves every Timer1.Interval which would be 20 =\
i googled already...
it tells me to press Ctrl+S to save lol...
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Tue Aug 21, 2007 10:25 am    Post subject: Reply with quote

Search on how to read and write to a file in Delphi. Write the data to a file when you want to save, and read it back in when you start your program the next time.
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Aug 21, 2007 10:46 am    Post subject: Reply with quote

ok thx
but i have a problem with saving the file... lets say ill use a txt file so i forgot how do i do it... Edit1.Text.Savedialog.free? :O idk...
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Tue Aug 21, 2007 10:52 am    Post subject: Reply with quote

WriteFile/ReadFile
_________________
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Aug 21, 2007 11:08 am    Post subject: Reply with quote

umm ok i used assignfile into a txt file but how to i assign there my delphi source? or i need to read my program and write it in a file?
again, how can i save an image i load? it can save i only missing the part that tells what to save (image1.savedialog or what do i need to write there so it'll save the image?)
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Tue Aug 21, 2007 11:25 am    Post subject: Reply with quote

Everything in your editbox should be in a buffer, then pass it into WriteFile.

EDIT: And please tell me wtf is all that BS, Edit1.Text.Savedialog.free and stuff?

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

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Aug 21, 2007 11:33 am    Post subject: Reply with quote

lol i tried saving an image it should be Image1.??? to save..?
i use savedialog but i dont know what i need to add so it'll save image1 or image2 or what i want..
Back to top
View user's profile Send private message
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Tue Aug 21, 2007 2:30 pm    Post subject: Reply with quote

Just use ini files, or the registry. I suggest ini files, since the registry can get pretty fucked up!
Back to top
View user's profile Send private message
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