COM wrapper around a .NET assembly
(Thursday, December 23, 2004)
Found the following interesting discussion in the Newsgroups:
COM wrapper around a .NET assembly by:Graham Blandford
| Hi all,
Wonder if anyone can point me in the right direction.
Due to time-constraints, it looks lie I may have to abandon using VB.NET development in favour of my more familiar VB6 environment. The issue I have is, that I have to use a .NET assembly (DLL) to access data from a database.
I understand it is possible to create a wrapper using COM which would then make it available to VB6. Although this isnt ideal, it might help me, in this partiular case, get to where I need to go a lot quicker. I'm not familiar with COM, but it may still be less of a learning curve than ..NET....
Any help would be happily received.
Thanks, Graham
| | | Reply: by:JLW
| | | Do a Google for COM Interop with VB.NET, you can compile your assembly to act as an ActiveX COM object that VB6 can use without a problem.
HTH JLW
| | | Reply: by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])
| | | <URL:http://msdn.microsoft.com/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp> <URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconCOMInteroperability.asp>
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
| | | Reply: by:Val Mazur
| | | Hi Graham,
Check next KBs about it
http://support.microsoft.com/default.aspx?scid=kb;en-us;817248&Product=vb6
http://support.microsoft.com/default.aspx?scid=kb;en-us;317535
-- Val Mazur Microsoft MVP
|
|
0 Comments:
Post a Comment