Regsvr32 [/u] [/s] <OCX File Name>
/s means Silent Mode (display no messages).
The following example registers the Microsoft MAPI ActiveX Control without displaying any messages:
To implement this example in a Visual FoxPro application, use the RUN command as follows:
Regsvr32 /s MSMAPI32.OCX
Note If an error occurs when registering a control, do the following:
RUN /N Regsvr32 /s MSMAPI32.OCX
- Verify in the Registry that the control has not been registered before.
- Verify that the following files are in the Windows\System directory:
If one of these files is missing, you may receive the following error message:
mfc30.dll olepro32.dll msvcrt20.dll
mfc40.dll msvcrt40.dllError: OLE Error Code 0x80040112: Appropriate license for this class not found.
Article ID: 146219 - Last Review: Sep 17, 2011 - Revision: 1