"Adarsh" <Ad****@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
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