dllregisterserver failed 0x80040200

O

ofmars

Hi,

I managed to compile a C++ MFC DLL and ran it with C# using DLLimport
to check if the method are giving the correct value and its working
fine.

However I want to register it using regsvr32 and it gives me an error
"DllRegisterServer in c:\MyDll.dll failed. Return code was 0x80040200".
I searched the net but found nothing about this error concerning dlls
:(.

Can anyone help me about this problem?

Any help appreciated
Thanks
 
R

Ronald Laeremans [MSFT]

Hi,

I managed to compile a C++ MFC DLL and ran it with C# using DLLimport
to check if the method are giving the correct value and its working
fine.

However I want to register it using regsvr32 and it gives me an error
"DllRegisterServer in c:\MyDll.dll failed. Return code was 0x80040200".
I searched the net but found nothing about this error concerning dlls
:(.

Can anyone help me about this problem?

Any help appreciated
Thanks
DllRegisterServer just calls code in your component. You simply need to
debug the registration code to see what is going wrong.

The error code is an interface specific error, so that by itself will
not give you a huge clue.

Ronald Laeremans
Visual C++ team
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top