I have added no code except to make the Times10 method take a value in and multiply by 10 and put that in a value going out:
- Code: Select all
STDMETHODIMP TComObjectImpl::Times10(long inVal, long* outVal)
{
*outVal = inVal * 10;
}
Everything else is generated code. The code compiles clean and creates an exe and a tlb file. I press the register button on the ridl toolbar and get the message that the ActiveX object has successfully been registered. I have then tried to import the COM object using the menu Component->Import Component. My COM object does not show up on any of the lists provided by the Import Component dialog.
I can't seem to find anything in the help file. Why is my COM object saying its registered but not showing up on the Type Library or ActiveX Control lists in the import component dialog?
I have also tried Project1.exe /REGSERVER but it still does not show up.
I have tried the Add button to import the tlb file or the exe and get a dialog box stating 'Error Accessing the OLE registry'.
Thanks,
Gregor
