Compartir a través de


CWinAppEx::WriteObject

Writes data derived from the CObject Class to the registry.

BOOL WriteObject(
   LPCTSTR lpszEntry,
   CObject& obj 
);

Parameters

  • [in] lpszEntry
    A string that contains the value to set.

  • [in] obj
    A reference to CObject data that the method will store.

Return Value

TRUE if this method is successful; otherwise FALSE.

Remarks

This method writes the obj data to the specified value under the default registry key. Use CWinAppEx::GetRegistryBase to determine the current registry key.

Requirements

Header: afxwinappex.h

See Also

Reference

CWinAppEx Class

Hierarchy Chart