Functions for creating executables and dynamic libraries – PB Docs 2017
Functions for creating executables and dynamic libraries These functions allow you to create executables and PowerBuilder Dynamic Libraries (PBDs and DLLs). You can specify the same options for Pcode and machine code and tracing that you can specify in the Project painter. Using ORCA, PBDs or DLLs must be created in a separate step before…
Functions for importing and compiling PowerBuilder objects – PB Docs 2017
Functions for importing and compiling PowerBuilder objects These functions allow you to import new objects into a library from a text listing of their source code and to compile entries that already exist in a library. Entries in a library have both a source code representation and a compiled version. When you import a new…
Next steps: continuing with the ORCA session – PB Docs 2017
Next steps: continuing with the ORCA session After the library list and application are set, you can call any ORCA function using the handle returned by the PBORCA_SessionOpen function. Most of the function calls are fairly straightforward. Others, like those requiring callbacks, are a bit more complicated. For information about callback functions, see About ORCA…
Callback function for PBORCA_SccSetTarget – PB Docs 2017
Callback function for PBORCA_SccSetTarget Description Called once for each library in the target library list. Syntax
|
1 2 |
typedef PBCALLBACK (void, *PBORCA_SETTGTPROC) Â Â Â ( PPBORCA_SETTARGET, LPVOID ); |
Argument Description PPBORCA_SETTARGET Pointer to the PBORCA_SCCSETTARGET structure LPVOID Long pointer to user data Return value None. Usage This callback function allows you to know which libraries are going to be refreshed by default and gives you the…
PBORCA_LINKERR structure – PB Docs 2017
PBORCA_LINKERR structure Description Reports the message text for a link error that has occurred when you build an executable. The PBORCA_ExecutableCreate function passes the PBORCA_LINKERR structure to its callback function. Syntax
|
1 2 3 |
typedef struct pborca_linkerr { Â Â Â LPTSTR lpszMessageText; } PBORCA_LINKERR, FAR *PPBORCA_LINKERR; |
Member Description lpszMessageText Pointer to the text of the error message Document get from Powerbuilder help Thank you for watching.
PBORCA_DynamicLibraryCreate – PB Docs 2017
PBORCA_DynamicLibraryCreate Description Creates a PowerBuilder dynamic library (PBD) or PowerBuilder DLL. Syntax
|
1 2 3 4 5 6 7 |
INT PBORCA_DynamicLibraryCreate (    HPBORCA hORCASession,    LPTSTR lpszLibraryName,    LPTSTR lpszPBRName,    LONG lFlags,    LPVOID pbcPara = NULL );  |
Argument Description hORCASession Handle to previously established ORCA session. lpszLibraryName Pointer to a string whose value is the file name of the library to be built into a PBD or DLL. lpszPBRName Pointer to a string whose value is the name of…
Content of a callback function – PB Docs 2017
Content of a callback function The processing that occurs in the callback function is entirely up to you. This section illustrates a simple way of handling it. UserData buffer In this example, the UserData buffer is a structure with a field whose value points to the actual message buffer. Other fields keep track of the…
ORCA return codes – PB Docs 2017
ORCA return codes The header file PBORCA.H defines these return codes: Return code Description 0Â Â Â Â Â Â PBORCA_OK Operation successful -1Â Â Â Â Â Â PBORCA_INVALIDPARMS Invalid parameter list -2Â Â Â Â Â Â PBORCA_DUPOPERATION Duplicate operation -3Â Â Â Â Â Â PBORCA_OBJNOTFOUND Object not found -4Â Â Â Â Â Â PBORCA_BADLIBRARY Bad library name -5Â Â Â Â Â Â PBORCA_LIBLISTNOTSET Library list not set -6Â Â Â Â Â Â PBORCA_LIBNOTINLIST Library not in library list -7Â Â Â Â Â Â PBORCA_LIBIOERROR Library I/O error -8Â Â Â Â Â Â PBORCA_OBJEXISTS Object exists -9Â Â Â Â Â Â PBORCA_INVALIDNAME Invalid name -10Â Â Â Â Â Â PBORCA_BUFFERTOOSMALL…
PBORCA_ObjectQueryHierarchy – PB Docs 2017
PBORCA_ObjectQueryHierarchy Description Queries a PowerBuilder object to get a list of the objects in its ancestor hierarchy. Only windows, menus, and user objects have an ancestor hierarchy that can be queried. Syntax
|
1 2 3 4 5 6 |
INT PBORCA_ObjectQueryHierarchy ( HPBORCA hORCASession, Â Â Â LPTSTR lpszLibraryName, Â Â Â LPTSTR lpszEntryName, Â Â Â PBORCA_TYPE otEntryType, Â Â Â PBORCA_HIERPROC pHierarchyProc, Â Â Â LPVOID pUserData ); |
Argument Description hORCASession Handle to previously established ORCA session. lpszLibraryName Pointer to a string whose value is the file name of the…
PBORCA_LibraryEntryInformation – PB Docs 2017
PBORCA_LibraryEntryInformation Description Returns information about an object in a PowerBuilder library. Information includes comments, size of source, size of object, and modification time. Syntax
|
1 2 3 4 5 |
INT PBORCA_LibraryEntryInformation ( HPBORCA hORCASession,    LPTSTR lpszLibraryName,    LPTSTR lpszEntryName,    PBORCA_TYPE otEntryType,    PPBORCA_ENTRYINFO pEntryInformationBlock ); |
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 for which you want…