PBX_CreateVisualObject

PowerBuilder Native Interface

Exported methods:

PBX_CreateVisualObject method

Description

Syntax

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

Return Values

Examples

PBXEXPORT PBXRESULT PBXCALL PBX_CreateVisualObject
(
   IPB_Session*         pbsession,
   pbobject            pbobj,
   LPCTSTR               className,      
   IPBX_VisualObject   **obj
)
{
   PBXRESULT result = PBX_OK;

   string cn(className);
   if (cn.compare("visualext") == 0)
   {
      *obj = new CVisualExt(pbsession, pbobj);
   }
   else
   {
      *obj = NULL;
      result = PBX_FAIL;
   }
   return PBX_OK;
};

Usage

See Also