Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEloadfromfile

BOOL PEloadfromfile (hObject, lpszFilename)

 

HWND 

hObject

The handle returned from PEcreate.

WCHAR* 

lpszFilename

Pointer to a null-terminated string naming file.

 

This function restores the current object from a binary file named by lpszFilename. You first must have stored the same type of object with PEsavetofile. 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.LoadObjectFromFile

 

See Also: PEload, PEloadpartial, PEstore, PEstorepartial, and PEsavetofile.

 

Chapter 5 of the manual has a section on serialization which provides examples on how to use this function.