ImageGear for C and C++ on Windows v21.0 - Updated
API Reference Guide / Core Component API Reference / Core Component Functions Reference / Component Manager Functions / IG_comm_comp_attach
In This Topic
    IG_comm_comp_attach
    In This Topic

    This function allows you to attach ImageGear component defined by lpCompName to the main ImageGear module.

    Declaration:

     
    Copy Code
    AT_ERRCODE  LACCUAPI IG_comm_comp_attach (
            LPCHAR lpCompName
    );
    

    Arguments:

    Name Type Description
    lpCompName LPCHAR The Name of ImageGear Component to be linked with main ImageGear module.

    Return Value:

    Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

    Supported Raster Image Formats:

    This function does not process image pixels.

    Sample:

    Annotation, Vector, Filters, Flashpix, ImageClean, Medical, MFC, Multimedia, ISIS

    Example:

     
    Copy Code
    ...
    #include "i_ART.h"
    ...
    /*  Initialize ART component   */
    IG_comm_comp_attach( "ART" );  
    ...
    

    Remarks:

    By default, ImageGear searches for components in the same directory where main ImageGear module is located. You can specify a different path to the folder containing component modules using global parameters API function IG_gctrl_item_set() and "COMM.PATH" global parameter.

    See Also:

    Attaching Components

    Global Control Parameters