Next create an IPB_Session object within IPB_VM, using the PowerBuilder application’s name and library list as arguments:
// loadpbvm.pbl must contain an application object // named loadpbvm and it must be on the search path // for the executable file LPCTSTR LibList[] = {"loadpbvm.pbl"}; if ( pbvm->CreateSession("loadpbvm", LibList, 1, &session) != PBX_OK ) { fprintf(stderr, "Error in CreateSession\n"); return 1; } fprintf(stderr, "Created session successfully\n");