Load the
PowerBuilder VM
In your C++ development tool, create a new console application
project. The include directory for the PBNI SDK, typically
PowerBuilder 2019SDKPBNIinclude, must be in your include path. If
you use any helper classes, the source file that contains them must be
added to your project. For a list of files and helper classes, see the
table in The PBNI
SDK.
The code for the C++ application creates an IPB_VM object using
the PB_GetVM function and loads the PowerBuilder VM:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#include "pbext.h" #include "stdio.h" typedef PBXEXPORT PBXRESULT (*P_PB_GetVM)(IPB_VM** vm); int main(int argc, char *argv[]) { IPB_Session* session; IPB_VM* pbvm = NULL; //Load the PowerBuilder VM module HINSTANCE hinst = LoadLibrary("pbvm.dll"); if ( hinst== NULL) return 0; fprintf(stderr, "Loaded PBVM successfully "); |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest