SAMPLE: PERSIST.EXE Persists Class Objects with VB6 (187299)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q187299 SUMMARY
Persist.exe is a self-extracting compressed file that demonstrates how to
persist objects in Microsoft Visual Basic 6.0. For the purpose of this
article, if you can answer "yes" to the following question, then you have
object persistence:
Can I save this object for later use?
When an object is created in Visual Basic (by instantiating a Visual Basic
class), that object exists in memory and is destroyed when the application
that created it is closed. This article demonstrates how to write the
property values of an object to a file, in other words, "persist" the
object. The object can later be recreated from the disk file, even if the
computer has been shut down and restarted. Visual Basic version 6.0
introduces the capability for persisting objects in this manner.
Modification Type: | Minor | Last Reviewed: | 3/3/2005 |
---|
Keywords: | kbdownload kbfile kbhowto kbPersistSt kbSample KB187299 kbAudDeveloper |
---|
|