all groups > dotnet interop > july 2003 >
You're in the

dotnet interop

group:

wrapper-newbie


wrapper-newbie serkan ulucan
7/10/2003 11:07:45 AM
dotnet interop:
hello,
I want to wrap a COM Object, but i don't know how to.
Is there any tutorial,sample code or any starting point is available?
any help would be appreciated.
Thanks

Re: wrapper-newbie Vadim Melnik
7/10/2003 12:17:09 PM
Hi,

[quoted text, click to view]

See Tlbimp.exe tool. Also Visual Studio .NET automatically generates interop
assembly when you add references a COM object ("COM" tab in "Add Reference"
dialog). Hope it helps.

...
Regards,
Vadim.

Re: wrapper-newbie serkan ulucan
7/10/2003 1:46:38 PM
Thanks for help but i want to write the wrapper without using the tlbimp.i
am going to use the COM object and adding it from references is not
possible.So is there any way to write it programmatically?
Regards...
[quoted text, click to view]

Re: wrapper-newbie Vadim Melnik
7/10/2003 5:26:36 PM
Hi,

[quoted text, click to view]

If you need creating Interop assembly on the fly then
TypeLibConverter.ConvertTypeLibToAssembly would be useful, it's under
"System.Runtime.InteropServices" namespace.

...
Regards,
Vadim.

Re: wrapper-newbie news.microsoft.com
7/17/2003 12:35:23 AM
Hello,

Check Aurigma COM to .NET tool (http://www.aurigma.com/products/comtonet)
which generate C# code of wrappers for your com objects.

You can edit generated C# code for creating custom wrappers.


[quoted text, click to view]

AddThis Social Bookmark Button