Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEload

BOOL PEload (hObject, lphGlobal)

 

HWND 

hObject

The handle returned from PEcreate.

HGLOBAL* 

lphGlobal

Handle to global memory containing data.

 

This function reloads an objects data from binary form located in a global memory object.

 

Parameter

Description

lphGlobal

Pointer to a global memory handle. This memory object holds binary information which was stored with the PEstore function.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

Call the PEreinitialize and PEresetimage functions after calling PEload. OCX developers set PEactions = 0, and VCL developers set PEactions := xReinitAndReset after calling PEload.

 

Use PEstore to initially store the object's information into the binary format.

 

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

 

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