PBX_CreateNonVisualObject

PowerBuilder Native Interface

Exported methods:

PBX_CreateNonVisualObject method

Description

Syntax

PBX_CreateNonVisualObject(IPB_Session* pbsession, pbobject pbobj, LPCTSTR xtraName, IPBX_NonVisualObject   **obj)[Unmapped Entity: middot ]
 

Return Values

Examples

PBXEXPORT PBXRESULT PBXCALL PBX_CreateNonVisualObject
(
   IPB_Session*          pbsession,
   pbobject              pbobj,
   LPCTSTR               xtraName,
   IPBX_NonVisualObject  **obj
)
{
   PBXRESULT result = PBX_OK;

   string cn(className);
   if (cn.compare("class_a") == 0)
   {
      *obj = new class_a(pbobj);
   }
   else if (cn.compare("class_b") == 0)
   {
      *obj = new class_b(pbobj);
   }
   else if (cn.compare("class_c") == 0)
   {
      *obj = new class_b(pbobj);
   else
   {
      *obj = NULL;
      result = PBX_E_NO_SUCH_CLASS;
   }

   return PBX_OK;
};

Usage

See Also