PBORCA_DeployWinFormProject
Description
Generates and compiles Windows Forms project and deploys the
assemblies according to the specifications contained in the project
objects.
Syntax
1 2 3 4 5 6 7 |
INT PBORCA_DeployWinFormProject ( HPBORCA hORCASession, LPTSTR lpszLibraryName, LPTSTR lpszProjectName, LPTSTR lpszIconFileName, PBORCA_DOTNETPROC pDotNetProc LPVOID pUserData ); |
Argument |
Description |
---|---|
hORCASession |
Handle to previously established ORCA |
lpszLibraryName |
Pointer to a string whose value is the file name |
lpszProjectName |
Project object containing deployment |
lpszIconFileName |
Name of the application icon file. |
pDotNetProc |
Pointer to the PBORCA_DOTNETPROC callback function. |
pUserData |
Pointer to user data to be passed to the |
Return value
INT. The typical return codes are:
Return code |
Description |
---|---|
0 PBORCA_OK |
Operation successful |
-1 PBORCA_INVALIDPARMS |
Invalid parameter list |
-4 PBORCA_BADLIBRARY |
Load library for necessary DLL failed |
-5 PBORCA_LIBLISTNOTSET |
SessionSetLibraryList is prerequisite |
-13 PBORCA_CURRAPPLNOTSET |
SessionSetCurrentAppl is prerequisite |
-19 PBORCA_CBCREATEERROR |
Component builder create error |
-20 PBORCA_CBINITERROR |
Component builder initialization error |
-21 PBORCA_CBBUILDERROR |
Component builder build error |
Usage
Error information is returned by first creating a callback function
associated with PBORCA_DeployWinFormProject that uses the following
function signature:
1 2 3 4 |
void MyDotNetMessageProc ( PPBORCA_DOTNET_MESSAGE pMsg, LPVOID pMyUserData) |
The pMsg argument is a pointer to the following structure:
1 2 3 4 5 6 |
typedef struct pborca_dotnetmsg { PBROCA_DOTNET_MSGTYPE eMessageType; LPTSTR lpszMessageText; } PBORCA_DOTNET_MESSAGE FAR *PPBORCA_DOTNET_MESSAGE; |
The eMessageType argument uses the following enumeration:
1 2 3 4 5 6 |
typedef enum pborca_dotnet_msgtype { PBORCA_ERROR_MESSAGE, PBORCA_WARNING_MESSAGE, PBORCA_UNSUPPORTED_FEATURE } PBORCA_DOTNET_MSGTYPE; |
Messages are returned to the caller one at a time in the following
order: PBORCA_ERROR_MESSAGE messages, PBORCA_WARNING_MESSAGE messages, and
PBORCA_UNSUPPORTED_FEATURE messages.