error PRJ0050: Failed to register output.

G

Guest

Hello All,

I am designing an ActiveX control in visual studio 2005 Vc++.After adding
some memeber functions to it,its giving the error as

"Error 6 error PRJ0050: Failed to register output. Please ensure you have
the appropriate permissions to modify the registry."

How to solve this problem.Please help me.

Thanks in Advance
 
W

William DePalo [MVP VC++]

Adarsh said:
I am designing an ActiveX control in visual studio 2005 Vc++.After adding
some memeber functions to it,its giving the error as

"Error 6 error PRJ0050: Failed to register output. Please ensure you have
the appropriate permissions to modify the registry."

How to solve this problem.Please help me.

Thanks in Advance

ActiveX controls export a function named DllRegisterServer() which is used
to set up the registry entries that COM requires. In general, you need to be
an administrator to update the registry. If something like REGSVR32 tries to
call DllRegisterServer() and the registry update fails you will get that
message.

But note that to make the call, the DLL has to be loaded and the
DllRegisterServer() export has to be found. It may be the case that due to
some other problem that the DLL can't be loaded. In that case REGSVR32 can't
call DllRegisterServer() and it may be that you'll see the same less than
helpful error message.

Regards,
Will
 

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