Create an IPB_Session object within IPB_VM

PowerBuilder Native Interface

Create an IPB_Session object within IPB_VM

   // 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");