Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEloadfromURL

BOOL PEloadfromURL( hObject, pszURL, dwFlags = I_F_TRANSFER_BINARY | I_F_RELOAD );

 

HWND 

hObject

The handle returned from PEcreate.

WCHAR* 

pszURL

Pointer to a null-terminated string naming URL and/or file.

DWORD

dwFlags

Flags sent to the Windows OpenURL function. Default is BINARY | RELOAD, valid settings are... (see Microsoft documentation for more info)

  • INTERNET_FLAG_TRANSFER_BINARY   Transfer the file as a binary file.
  • INTERNET_FLAG_RELOAD   Get the data from the wire even if it is locally cached.
  • INTERNET_FLAG_DONT_CACHE   Do not cache the data, either locally or in any gateways.
  • INTERNET_OPEN_FLAG_USE_EXISTING_CONNECT   If possible, reuse the existing connections to the server for new requests generated by OpenUrl instead of creating a new session for each connection request.

 

The PEloadfromURL function is used to update a ProEssentials control with data from a file, ASPX, or ASP page from a server.

 

If pszURL represents a simple file, it should be the product of a PEsavetofile method call.

 

If pszURL represents an ASPX page, the server page should contain a ProEssentials WebForm control (except a PedoWeb which is only used for appending) with it's RenderingType property set to BinaryDataStream. This enables client-side code to update a client-side ActiveX with data from the server. Example code for use of this method can be found within the included VB.NET_WebDemo, Walk-Through3.

 

If pszURL represents an ASP page, the server page should contain and ProEssentials ActiveX control and output its data via the SaveToStream method. This enables client-side code to update a client-side ActiveX with data from the server. Example code for use of this method can be found in the topic SaveToStream.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

.Net developers, see PeFunction.LoadFromURL

 

Ocx developers , see LoadFromURL method

 

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.