so Im creating a Product Monitoring System for my thesis
and since im accessing a database, plus the fact that my client's PC is total crap, I wanted to include a Autorecovery Feature in my system.
Im hoping for a autorecovery feature similar to Microsoft Word and shit...
source code and/or tutorial on how to achieve this will be greatly appreciated. Also, +10 Internets to the anon for the source code. Or send me email for additional info please
Name:
Anonymous2009-01-22 23:56
OP here.. I forgot to include my language. Im using Visual basic 6
We are not allowed other languages, and besides, I only have 2 more weeks to finish this system. So I think Ill stick with Vb6. Thanks for the advise though, Ill study Phyton after I graduate
Name:
Anonymous2009-01-23 2:40
I hope you don't graduate. You are a fucking idiot and have no clue what you are fucking doing.
You want auto recovery of what exactly? You want a feature similar to Word, so are you autorecovering Word documents? Autorecovery of an application state is not some universal algorithm.
Word saves a copy of your document at predetermined intervals while you are editing it. When the document is closed properley, these copy is deleted. If Word starts up and sees a copy of a document still in the location that it saves these copies, it knows it didn't shutdown properley when that document was open so it asks you if you want to "recover" it which just involves opening the copy.
-Save document to some directory every 5 minutes.
-On startup, is directory empty?
-No! Fuck, open contents of directory.
You will need to have a seperate thread to do this autosaving.
The fact that this simple procedure is beyond you is no surprise. If you are indeed going to some shitty school (DeVry does programming now maybe?), they are teaching you something that is long dead. VB6 was replaced some 8 years ago. Obviously you have some idiot prof who doesn't know shit. By extention neither do you and unless you go to a real school, then you never will.