Ejemplo n.º 1
0
/// <summary>
/// Calls on the FDO Client services to unregister the SuperMap SDB/SDX provider.
/// Use dynamic proc address binding because there will not be a path set up yet.
/// </summary>
/// <returns>S_FALSE if there was an error, S_OK otherwise.</returns> 
extern "C" FDO_SUPERMAP_API HRESULT DllUnregisterServer ()
{
    // Find a matching provider in the Provider Registry.
    IProviderRegistry* registry = FdoFeatureAccessManager::GetProviderRegistry();
	registry->UnregisterProvider (SUPERMAP_PROVIDER_NAME);
	return S_OK;
}
Ejemplo n.º 2
0
/// <summary>
/// Calls on the FDO Client services to unregister the FdoRdbms provider.
/// Use dynamic proc address binding because there will not be a path set up yet.
/// </summary>
/// <returns>SELFREG_E_CLASS if there was an error, S_OK otherwise.</returns>
HRESULT APIENTRY DllUnregisterServer (void)
{
    HRESULT ret;

    ret = SELFREG_E_CLASS; // The server was unable to remove the entries of all the object classes.
    IProviderRegistry *registry = FdoFeatureAccessManager::GetProviderRegistry();
    if (registry != NULL)
    {
        registry->UnregisterProvider (RDBMS_ODBC_PROVIDER_NAME);
        ret = S_OK;
    }

    return (ret);
}
Ejemplo n.º 3
0
/// <summary>
/// Calls on the FDO Client services to register the FdoRdbms provider.
/// Use dynamic proc address binding because there will not be a path set up yet.
/// </summary>
/// <returns>SELFREG_E_CLASS if there was an error, S_OK otherwise.</returns>
HRESULT APIENTRY DllRegisterServer (void)
{
    HRESULT ret;
    FdoRdbmsUtil  util;
    ret = SELFREG_E_CLASS; // The server was unable to complete the registration of all the object classes.
    IProviderRegistry *registry = FdoFeatureAccessManager::GetProviderRegistry();
    if (registry != NULL)
    {
        registry->RegisterProvider (RDBMS_ODBC_PROVIDER_NAME,
                                    NlsMsgGet(FDORDBMS_476, RDBMS_ODBC_PROVIDER_DEFAULT_DISPLAY_NAME),
                                    NlsMsgGet(FDORDBMS_477, RDBMS_ODBC_PROVIDER_DEFAULT_DESCRIPTION),
                                    RDBMS_ODBC_PROVIDER_VERSION,
                                    RDBMS_ODBC_FDO_VERSION,
                                    module,
                                    false);
        ret = S_OK;
    }
    return (ret);
}
Ejemplo n.º 4
0
/// <summary>
/// Calls on the FDO Client services to register the SuperMap SDB/SDX provider.
/// Use dynamic proc address binding because there will not be a path set up yet.
/// </summary>
/// <returns>S_FALSE if there was an error, S_OK otherwise.</returns> 
extern "C" FDO_SUPERMAP_API HRESULT DllRegisterServer ()
{
    HRESULT ret;
	
	ret = S_FALSE;
    // Find a matching provider in the Provider Registry.
    IProviderRegistry* registry = FdoFeatureAccessManager::GetProviderRegistry();

    registry->RegisterProvider (
        SUPERMAP_PROVIDER_NAME,
        /*WTEXT(SUPERMAP_PROVIDER_DEFAULT_DISPLAY_NAME),*/
		NlsMsgGet(SUPERMAP_PROVIDER_DISPLAY_NAME, SUPERMAP_PROVIDER_DEFAULT_DISPLAY_NAME),
		/*WTEXT(SUPERMAP_PROVIDER_DEFAULT_DESCRIPTION),*/
		NlsMsgGet(SUPERMAP_PROVIDER_DESCRIPTION, SUPERMAP_PROVIDER_DEFAULT_DESCRIPTION),
        SUPERMAP_PROVIDER_VERSION,
        SUPERMAP_FDO_VERSION,
        module,
        false);
    ret = S_OK;

    return (ret);
}