Home All Groups Group Topic Archive Search About

Assigning Strong Name to COM dlls

Author
31 Jul 2006 3:06 PM
Usman Jamil
Hi

I've a dotnet project that has refrences of some COM components written in
VC++. I have not been able to assign my dotnet project a strong name because
this COM refrence is strongly named. Can someone please tell me that how can
I assign strong name to this com component too. Somewhere in the group I
read that tlbimp.exe is used to strongly name the interop dll of that COM.
Please help me with the exact command parameters to set to do so.

Regards

Usman

Author
31 Jul 2006 3:16 PM
Dominick Baier
Hi,

you have to sign the runtime callable wrapper - tlbimp has a /keyfile option.

dominick



Show quoteHide quote
> Hi
>
> I've a dotnet project that has refrences of some COM components
> written in VC++. I have not been able to assign my dotnet project a
> strong name because this COM refrence is strongly named. Can someone
> please tell me that how can I assign strong name to this com component
> too. Somewhere in the group I read that tlbimp.exe is used to strongly
> name the interop dll of that COM. Please help me with the exact
> command parameters to set to do so.
>
> Regards
>
> Usman
>
Author
31 Jul 2006 3:38 PM
Usman Jamil
I guess runtime callable wrapper is the interop created by adding the
refrence of that com. Can you please tell me that exact command to use if I
have following files. and I've to assign strong name to dotnetApp.exe and
the runtime callable wrapper.

1. dotnetApp.exe
2. TestCom.dll
3. Interop.TestComlib.dll
4. TestKey.snk (file generated using SN.exe as SN.exe -k TestKey.snk)

Regards

Usman


Show quoteHide quote
"Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote in
message news:4580be63a2028c882dc2840db4f@news.microsoft.com...
> Hi,
> you have to sign the runtime callable wrapper - tlbimp has a /keyfile
> option.
>
> dominick
>
>
>
>> Hi
>>
>> I've a dotnet project that has refrences of some COM components
>> written in VC++. I have not been able to assign my dotnet project a
>> strong name because this COM refrence is strongly named. Can someone
>> please tell me that how can I assign strong name to this com component
>> too. Somewhere in the group I read that tlbimp.exe is used to strongly
>> name the interop dll of that COM. Please help me with the exact
>> command parameters to set to do so.
>>
>> Regards
>>
>> Usman
>>
>
>
Author
31 Jul 2006 3:51 PM
Dominick Baier
Hi,

when you add a reference to a COM DLL in VS - they call tlbimp.exe under
the cover (which can be found in the framework directory).

You have to do that manually, and reference the interop assembly directly.

I have a look at the correct command lines switches if you don't get that
to work (but thats fairly straightforward).

dominick

Show quoteHide quote
> I guess runtime callable wrapper is the interop created by adding the
> refrence of that com. Can you please tell me that exact command to use
> if I have following files. and I've to assign strong name to
> dotnetApp.exe and the runtime callable wrapper.
>
> 1. dotnetApp.exe
> 2. TestCom.dll
> 3. Interop.TestComlib.dll
> 4. TestKey.snk (file generated using SN.exe as SN.exe -k TestKey.snk)
> Regards
>
> Usman
>
> "Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote
> in message news:4580be63a2028c882dc2840db4f@news.microsoft.com...
>
>> Hi,
>> you have to sign the runtime callable wrapper - tlbimp has a /keyfile
>> option.
>> dominick
>>
>>> Hi
>>>
>>> I've a dotnet project that has refrences of some COM components
>>> written in VC++. I have not been able to assign my dotnet project a
>>> strong name because this COM refrence is strongly named. Can someone
>>> please tell me that how can I assign strong name to this com
>>> component too. Somewhere in the group I read that tlbimp.exe is used
>>> to strongly name the interop dll of that COM. Please help me with
>>> the exact command parameters to set to do so.
>>>
>>> Regards
>>>
>>> Usman
>>>