The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



Reads CObject-dervied data from the registry.

BOOL GetObject(
   LPCTSTR lpszEntry,
   CObject& obj 

[in] lpszEntry

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

[out] obj

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

Nonzero if the method was successful; otherwise 0.

This method reads data from the registry that is derived from CObject. To write CObject data to the registry, use either CWinAppEx::WriteObject or CWinAppEx::WriteSectionObject.

The lpszEntry parameter is the name of a registry entry that is located under 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