CDaoWorkspace::SetIniPath

static void PASCAL SetIniPath( LPCTSTR lpszRegistrySubkey );
throw( CDaoException, CMemoryException );

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 this member function to specify the location of Windows registry settings for the Microsoft Jet database engine. Call SetIniPath only if you need to specify special settings. For more information, see the topic "IniPath Property" in DAO Help.

Important   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.

For more information about workspaces, see the article DAO Workspace in Visual C++ Programmer's Guide.

CDaoWorkspace OverviewClass MembersHierarchy Chart