Xceed Zip for COM/ActiveX on x86/x64 Documentation
Self-Extractor Module reference / Self-Extractor Module methods / SfxAddExtensionToAssociate method
In This Topic
    SfxAddExtensionToAssociate method
    In This Topic

    Description

    The SfxAddExtensionToAssociate method adds an item to the SfxExtensionsToAssociate list of extensions to associate.

    SfxAddExtensionToAssociate automatically creates a string of the appropriate format for the SfxExtensionsToAssociate property and handles separating items with the CR+LF characters. In fact, it performs the same work as the following line of VB code:

    XceedZip1.SfxExtensionsToAssociate = XceedZip1.SfxExtensionsToAssociate + sDescription + "|" + sExtension + "|" + sApplication + Chr(13) + Chr(10)

    Declaration (ActiveX)  
    Method SfxAddExtensionToAssociate(sDescription As String, sExtension As String, sApplication As String)
    Declaration (DLL API)  
    void XzSfxAddExtensionToAssociate( HXCEEDZIP hZip, const TCHAR* pszDescription, const TCHAR* pszExtension, const TCHAR* pszApplication )

    Parameters

    Parameter Description
    sDescription  A short description of the item.
    sExtension  The extension to associate to the application.
    sApplication  The path and filename of the item that will be associated to.

    Return values

    None

    Applicable properties

    SfxExtensionsToAssocitate