CRegKey Class Members MethodsAttach Attaches a registry key handle to the CRegKey object. Close Releases m_hKey. Create Creates or opens the specified key. CRegKey Constructor. DeleteSubKey Deletes the specified key. DeleteValue Deletes a value field of the key identified by m_hKey. Detach Detaches m_hKey from the CregKey object. Open Opens the specified key. QueryValue Retrieves the data for a specified value field. RecurseDeleteKey Deletes the specified key and explicitly deletes all subkeys. SetKeyValue Stores data in a specified value field of a specified key. SetValue Stores data in a specified value field. Operatorsoperator HKEY Converts a CRegKey object to an HKEY. Data Membersm_hKey Contains a handle of the registry key associated with the CRegKey object. 刚查了一下 没有EmunKey这个函数啊 vc6的mfc
我查了以下,属于ALT的 是不是因为.ncb。关闭工程,删掉.ncb在打开试一试啊Call this method to enumerate the subkeys of the open registry key.LONG EnumKey( DWORD iIndex, LPTSTR pszName, LPDWORD pnNameLength, FILETIME* pftLastWriteTime = NULL ) throw( ); Parameters iIndex The subkey index. This parameter should be zero for the first call and then incremented for subsequent calls pszName Pointer to a buffer that receives the name of the subkey, including the terminating null character. Only the name of the subkey is copied to the buffer, not the full key hierarchy. pnNameLength Pointer to a variable that specifies the size, in TCHARs, of the buffer specified by the pszName parameter. This size should include the terminating null character. When the method returns, the variable pointed to by pnNameLength contains the number of characters stored in the buffer. The count returned does not include the terminating null character. pftLastWriteTime Pointer to a variable that receives the time the enumerated subkey was last written to.
也许是因为vc6的bug 关闭workspace del ***.ncb 再打开 也许是你没有写那个头文件 吧 好像是 atlbase.h
MethodsAttach Attaches a registry key handle to the CRegKey object.
Close Releases m_hKey.
Create Creates or opens the specified key.
CRegKey Constructor.
DeleteSubKey Deletes the specified key.
DeleteValue Deletes a value field of the key identified by m_hKey.
Detach Detaches m_hKey from the CregKey object.
Open Opens the specified key.
QueryValue Retrieves the data for a specified value field.
RecurseDeleteKey Deletes the specified key and explicitly deletes all subkeys.
SetKeyValue Stores data in a specified value field of a specified key.
SetValue Stores data in a specified value field.
Operatorsoperator HKEY Converts a CRegKey object to an HKEY.
Data Membersm_hKey Contains a handle of the registry key associated with the CRegKey object. 刚查了一下 没有EmunKey这个函数啊 vc6的mfc
是不是因为.ncb。关闭工程,删掉.ncb在打开试一试啊Call this method to enumerate the subkeys of the open registry key.LONG EnumKey(
DWORD iIndex,
LPTSTR pszName,
LPDWORD pnNameLength,
FILETIME* pftLastWriteTime = NULL
) throw( );
Parameters
iIndex
The subkey index. This parameter should be zero for the first call and then incremented for subsequent calls
pszName
Pointer to a buffer that receives the name of the subkey, including the terminating null character. Only the name of the subkey is copied to the buffer, not the full key hierarchy.
pnNameLength
Pointer to a variable that specifies the size, in TCHARs, of the buffer specified by the pszName parameter. This size should include the terminating null character. When the method returns, the variable pointed to by pnNameLength contains the number of characters stored in the buffer. The count returned does not include the terminating null character.
pftLastWriteTime
Pointer to a variable that receives the time the enumerated subkey was last written to.
关闭workspace
del ***.ncb
再打开
也许是你没有写那个头文件 吧
好像是
atlbase.h