Re: self-register problem (linker bug?)
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 07 Feb 2007 11:40:50 -0500
What version of the OS are you using? Are you logged in as administrator? Is the
message actually correct [Do you have rights to modify the Registry]?
joe
On Wed, 7 Feb 2007 15:32:39 +0100, "Eric" <bauersachs@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
When I create my DLL then I get the following error message:Joseph M. Newcomer [MVP]
1>Linking...
1> Creating library D:\Project\xxxx\Release Unicode\PROJ.lib and object
D:\Project\xxxx\Release Unicode\PROJ.exp
1>Embedding manifest...
1>Registering output...
1>Project : error PRJ0050: Failed to register output. Please ensure you have
the appropriate permissions to modify the registry.
1>Build log was saved at "file://d:\Project\xxxx\Release
Unicode\BuildLog.htm"
1>PROJ - 1 error(s), 0 warning(s)
Trying to register it by myself with regsvr32 results in:
DllRegisterServer in proj.dll failed.
Return code was: 0x80029c4a
(This means "Error Loading Type Library")
To fix this problem I found out that I had to include the type library into
the DLL. Some older article, written by Igor Tandetnik, says that in the
resource file I should include the TLB:
1 TYPELIB "ProjectName.tlb"
To check if it worked you can use the OLE/COM Object Viewer and select View
TypeLib and select the DLL.
I made this include by setting the option "Linker / Embedded IDL / Type
Library" to $(ProjectDir)$(IntDir)\PROJ.tlb instead of modifying the
resource file.
This works. But now I have the problem that I have the same error message in
the release configuration and the above mentioned change isn't enough. I
found out that to get it work there I had to enable incremental linking.
What has incremental linking to do with including a type library? Is this a
linker bug? I'm using Visual Studio C++ 2005 SP1.
Eric
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: self-register problem (linker bug?)
- From: Eric
- Re: self-register problem (linker bug?)
- Prev by Date: printer landscape problem
- Next by Date: Re: OT - Productivity level?
- Previous by thread: printer landscape problem
- Next by thread: Re: self-register problem (linker bug?)
- Index(es):
Relevant Pages
|
Loading