Compartir a través de


CDaoWorkspace::SetIniPath

Call this member function to specify the location of Windows registry settings for the Microsoft Jet database engine.

static void PASCAL SetIniPath( 
   LPCTSTR lpszRegistrySubKey  
);

Parameters

  • lpszRegistrySubkey
    A string containing the name of a Windows registry subkey for the location of Microsoft Jet database engine settings or parameters needed for installable ISAM databases.

Remarks

Call SetIniPath only if you need to specify special settings. For more information, see the topic "IniPath Property" in DAO Help.

Nota

Call SetIniPath during application installation, not when the application runs. SetIniPath must be called before you open any workspaces, databases, or recordsets; otherwise, MFC throws an exception.

You can use this mechanism to configure the database engine with user-provided registry settings. The scope of this attribute is limited to your application and cannot be changed without restarting your application.

Requirements

Header: afxdao.h

See Also

Reference

CDaoWorkspace Class

Hierarchy Chart

Other Resources

CDaoWorkspace Members