L_ContainerGetObjectType

#include "LtCon.h"

L_LTCON_API L_INT L_ContainerGetObjectType(pContainer, pnObjectType )

pCONTAINERHANDLE pContainer;

pointer to a container handle

pCONTAINEROBJECTTYPE pnObjectType;

pointer to an integer

Gets the current container object type.

Parameter

Description

pContainer

Pointer to a container handle.

pnObjectType

Point to the variable to be updated with the current object type.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries

LTCON

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_ContainerSetObjectType

Topics:

Using Container Objects

Example

L_INT ContainerGetObjectTypeExample(pCONTAINERHANDLE pContainer) 
{ 
   L_INT nRet; 
   nRet = L_ContainerIsValid ( pContainer ); 
   if ( nRet == SUCCESS ) /* check the validity of container handle */ 
   { 
      CONTAINEROBJECTTYPE ObjectType ; 
      /* get the current container object */ 
      nRet = L_ContainerGetObjectType ( pContainer, &ObjectType ) ; 
      if(nRet != SUCCESS) 
         return nRet; 
      /* stick to line object */ 
      if ( CONTAINER_OBJECT_TYPE_LINE != ObjectType) 
      { 
         /* set the container object */ 
         nRet = L_ContainerSetObjectType ( pContainer, CONTAINER_OBJECT_TYPE_LINE ) ; 
      } 
   } 
   return nRet; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Container and Automation C API Help