Call PB_GetVM to get a pointer to the IPB_VM interface

PowerBuilder Native Interface

Call PB_GetVM to get a pointer to the IPB_VM interface

The next step is to call the PB_GetVM function to get a pointer to the IPB_VM interface:

   P_PB_GetVM getvm = (P_PB_GetVM)GetProcAddress
      (hinst,"PB_GetVM");
   if (getvm == NULL) return 0;

   getvm(&pbvm);
   if (pbvm == NULL) return 0;