Re: Project : error PRJ0050: Failed to register output.




Ajay Kalra wrote:
"Herby" <prmarjoram@xxxxxxxxx> wrote in message
news:1161857915.272084.140140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Im currently refactoring an MFC application to an MFC DLL.
What reasons would stop regsvr32 registering the DLL?

It gives the following hint
"Please ensure you have the appropriate permissions to modify the
registry."

Which I can assure you I do have.

My hunch is it is something to do with some global data that may be
being created etc - which was fine in an exe but now not in a DLL ?

Are there some definate do's/dont's when using a DLL vs an EXE ?

Has anybody had this type of problem before?

Im just having to eliminate lots of code to try and find the culprit?


It would appear probelm is the permissions. Typically regsvr32 will fail
because all the dependent dlls of that module being registered are not
found. You can use Depends.exe on that module and see if you have all the
dependent DLLs.

--
Ajay Kalra [MVP - VC++]
ajaykalra@xxxxxxxxx

I do have the DLLs. If i comment out certain code, then certain
modules get excluded from linkage and then its ok. Although im not
clear what code is causing it - very time-consuming at the moment. Why
would the exclusion of certain obj files from linkage cause regsvr32 to
behave differently?

If it cant find a particular DLL - it should say so -

.



Relevant Pages

  • Default Regitry Permissions
    ... than the container's permissions. ... My class however, after registering my DLL using regsvr32, ... on registry keys added by running regsvr32 on a DLL? ...
    (microsoft.public.windows.server.security)
  • Re: DLLSelfRegister from VB.Net
    ... This is .net why are you registering the dll anyway? ... you can use reflection if you are tyring to reference a .dll at run time. ... > Public Declare Function GetProcAddress Lib "kernel32" Alias ... >> So when we run the regsvr32, commonly it will show a msgbox to tell us ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Word Cannot Find Its Data Source ~~~.olk
    ... > I'd like some confirmation about registering this DLL. ... DLL, just in case, but regsvr32 came up with a "missing entry point" error. ... as I would like to have an address book connection method that can be ... initiated from Word and "does everything", the "initiation from Outlook" ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Error openig/Creating DTS
    ... no way to register some dll or unregister (forbiden in the ... Regsvr32 /u Comcat.dll ... Test DTS. ... Try registering the dlls. ...
    (microsoft.public.sqlserver.dts)
  • Re: VB6 executable accessing a .Net DLL with ComClass
    ... regsvr32 in that it records the exact location of the dll. ... vb6 program. ... registering the class that I am using. ... getting an -2147024894 - Automation Error. ...
    (microsoft.public.dotnet.framework.interop)