Visit Gigasoft's Web Site
 ProEssentials v10 Help

PEsavetofile

BOOL PEsavetofile (hObject, lpszFilename)

 

HWND 

hObject

The handle returned from PEcreate.

WCHAR* 

lpszFilename

Pointer to a null-terminated string naming file.

 

This function stores the current object into a binary file named by lpszFilename. You can later restore the object with PEloadfromfile. Care must be taken to make sure that the correct object type (Graph, Scientific Graph, 3D Scientific Graph, Polar Object or Pie Chart Object) is used with PEloadfromfile as was used with PEsavetofile. Generally you will name files in a method which identifies which type of object is stored.

 

Parameter

Description

lpszFilename

This pointer must identify a valid filename.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

.NET developers, see PeFunction.SaveObjectToFile

 

See Also: PEloadfromfile, PEFILEHDR, PEload, PEloadpartial, PEstore, PEstorepartial

 

Chapter 5 has a section on Serialization which provides more information on saving objects to disk.