Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CWinAppEx::GetSectionObject

Reads CObject registry data from the registry.

BOOL GetSectionObject(
   LPCTSTR lpszSubSection,
   LPCTSTR lpszEntry,
   CObject& obj 
);
[in] lpszSubSection

A string that contains the relative path of a registry key.

[in] lpszEntry

A string that contains the value to read.

[out] obj

A reference to a CObject. The method uses this CObject to store the registry data.

Nonzero if successful; otherwise 0.

This method reads data from the registry. The data read is CObject data, or data for a class derived from CObject. To write CObject data to the registry, use either CWinAppEx::WriteObject or CWinAppEx::WriteSectionObject.

The lpszSubSection parameter is not an absolute path for a registry entry. It is a relative path that is appended to the end of the default registry key for your application. To get or set the default registry key, use the methods CWinAppEx::GetRegistryBase and CWinAppEx::SetRegistryBase respectively.

Header: afxwinappex.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.