Description
Exports the source code for a PowerBuilder library entry to a text buffer.
Syntax
INT PBORCA_LibraryEntryExportEx ( HPBORCA hORCASession, LPTSTR lpszLibraryName, LPTSTR lpszEntryName, PBORCA_TYPE otEntryType, LPTSTR lpszExportBuffer, LONG lExportBufferSize LONG *plReturnSize);
|
Argument |
Description |
|---|---|
|
hORCASession |
Handle to previously established ORCA session. |
|
lpszLibraryName |
Pointer to a string whose value is the file name of the library containing the object you want to export. |
|
lpszEntryName |
Pointer to a string whose value is the name of the object being exported. |
|
otEntryType |
A value of the PBORCA_TYPE enumerated data type specifying the object type of the entry being exported. Values are: PBORCA_APPLICATION PBORCA_BINARY PBORCA_DATAWINDOW PBORCA_FUNCTION PBORCA_MENU PBORCA_PIPELINE PBORCA_PROJECT PBORCA_PROXYOBJECT PBORCA_QUERY PBORCA_STRUCTURE PBORCA_USEROBJECT PBORCA_WINDOW |
|
lpszExportBuffer |
Pointer to the data buffer in which ORCA stores the code for the exported source when the PBORCA_CONFIG_SESSION property bExportCreateFile is FALSE. This argument can be NULL if bExportCreateFile is TRUE. |
|
lExportBufferSize |
Size in bytes of lpszExportBuffer. This argument is not required if the PBORCA_CONFIG_SESSION property bExportCreateFile is TRUE. |
|
*plReturnSize |
The size, in BYTES, of the exported source buffer or file. |
Return value
INT. Typical return codes are:
|
Return code |
Description |
|---|---|
|
0 PBORCA_OK |
Operation successful |
|
-1 PBORCA_INVALIDPARMS |
Invalid parameter list |
|
-3 PBORCA_OBJNOTFOUND |
Object not found |
|
-4 PBORCA_BADLIBRARY |
Bad library name |
|
-7 PBORCA_LIBIOERROR |
Library I/O error |
|
-10 PBORCA_BUFFERTOOSMALL |
Buffer size is too small |
|
-33 PBORCA_DBCSERROR |
Locale setting error when converting Unicode to ANSI_DBCS |
Usage
This function behaves exactly like PBORCA_LibraryEntryExport, except that with PBORCA_LibraryEntryExportEx, the size of the exported source is returned to the caller in the additional *plReturnSize argument.
See also


