Create an instance of the PowerBuilder object

PowerBuilder Native Interface

Create an instance of the PowerBuilder object

   // Create the PowerBuilder object contained 
   // in loadpbvm.pbl.
   // First find the group that contains the
   // user object nvo_mult
   pbgroup group = session->FindGroup("nvo_mult",
      pbgroup_userobject);
   if (group == NULL) return 0;
   
   // Now find the class nvo_mult in the group
   pbclass cls = session->FindClass(group,"nvo_mult");
   if (cls == NULL) return 0;
   
   // Create an instance of the PowerBuilder object
   pbobject pbobj = session->NewObject(cls);