Search code examples
ocxregsvr32dllregistration

Cannot register my .ocx with error code 0x80040200


When i try to register my .ocx file I get error code 0x80040200.

I know that this error usually occurs when I got no administrator privileges, but for me that's not the case.

I found some code snippet with which I could test my .ocx wether regsvr32 can find the entry point and it looks like it could.

Is there any other known reason why this error could occur?

Thanks


Solution

  • In my case, I tried to register dll and got the same error. The reason was absence of a tlb file near the dll.