void UpdateRegistry( OLE_APPTYPE nAppType = OAT_INPLACE_SERVER, LPCSTR* rglpszRegister = NULL, LPCSTR FAR* rglpszOverwrite = NULL );
Parameters
nAppType
A value from the OLE_APPTYPE enumeration, which is defined in AFXDISP.H. It can have any one of the following values:
rglpszRegister
A list of entries that is written into the registry only if no entries exist.
rglpszOverwrite
A list of entries that is written into the registry regardless of whether any preceding entries exist.
Remarks
Loads file-type information from the document-template string and places that information in the OLE system registry.
The registration information is loaded by means of a call to CDocTemplate::GetDocString. The substrings retrieved are those identified by the indexes regFileTypeId, regFileTypeName, and fileNewName, as described in the GetDocString reference pages.
If the regFileTypeId substring is empty or if the call to GetDocString fails for any other reason, this function fails and the file information is not entered in the registry.
The information in the arguments rglpszRegister and rglpszOverwrite is written to the registry through a call to AfxOleRegisterServerClass. The default information, which is registered when the two arguments are NULL, is suitable for most applications. For information on the structure of the information in these arguments, see AfxOleRegisterServerClass.
For more information, see IDispatch in the Win32 SDK OLE Programmer's Reference.
COleTemplateServer Overview | Class Members | Hierarchy Chart
See Also CDocTemplate::GetDocString, AfxOleRegisterServerClass