Home All Groups Group Topic Archive Search About
Author
20 May 2006 4:16 PM
gs
Do I really need cominterop.dll for making use of .net 2 assembly through
com interface?

I am using dotnet sdk that comes with visual studio express 2005. did not
install sdk 1x

I am still having problem using the assembly from native application through
com interface when there is string array involved.  In the vb project I did
enable com interop. and use the calls library template.

Author
22 May 2006 9:43 AM
Dmytro Lapshyn [MVP]
Hi,

> Do I really need cominterop.dll for making use of .net 2 assembly through
> com interface?

No, interop DLLs are needed to consume COM objects from .NET code. In your
scenario, you should register your .NET assembly for COM interop with the
regasm.exe command-line tool (you can use the corresponding IDE project
setting as an alternative, but the IDE does not register the assembly's code
base path properly, at least in VS 2003).

> I am still having problem using the assembly from native application
> through com interface when there is string array involved.  In the vb
> project I did enable com interop. and use the calls library template.

Please repost this in more detail to
microsoft.public.dotnet.framework.interop

Show quote
"gs" <g*@nomail.nil> wrote in message
news:u0mVNjCfGHA.2456@TK2MSFTNGP04.phx.gbl...
> Do I really need cominterop.dll for making use of .net 2 assembly through
> com interface?
>
> I am using dotnet sdk that comes with visual studio express 2005. did not
> install sdk 1x
>
> I am still having problem using the assembly from native application
> through com interface when there is string array involved.  In the vb
> project I did enable com interop. and use the calls library template.
>
Author
22 May 2006 8:51 PM
gs
thx. much appreciated.

Show quote
"Dmytro Lapshyn [MVP]" <x-code@no-spam-please.hotpop.com> wrote in message
news:%23Yea4QYfGHA.1456@TK2MSFTNGP04.phx.gbl...
> Hi,
>
>> Do I really need cominterop.dll for making use of .net 2 assembly through
>> com interface?
>
> No, interop DLLs are needed to consume COM objects from .NET code. In your
> scenario, you should register your .NET assembly for COM interop with the
> regasm.exe command-line tool (you can use the corresponding IDE project
> setting as an alternative, but the IDE does not register the assembly's
> code base path properly, at least in VS 2003).
>
>> I am still having problem using the assembly from native application
>> through com interface when there is string array involved.  In the vb
>> project I did enable com interop. and use the calls library template.
>
> Please repost this in more detail to
> microsoft.public.dotnet.framework.interop
>
> "gs" <g*@nomail.nil> wrote in message
> news:u0mVNjCfGHA.2456@TK2MSFTNGP04.phx.gbl...
>> Do I really need cominterop.dll for making use of .net 2 assembly through
>> com interface?
>>
>> I am using dotnet sdk that comes with visual studio express 2005. did not
>> install sdk 1x
>>
>> I am still having problem using the assembly from native application
>> through com interface when there is string array involved.  In the vb
>> project I did enable com interop. and use the calls library template.
>>
>

AddThis Social Bookmark Button