Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  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

 
Previous Posts
    - More data woes....
    - Serial Communication
    - VB and 'graphical' languages
    - Custom Control Postback Problems
    - [Help] my form lost my Tab page1 & page 2.
    - [HELP] All textbox and button disappear in design ...
    - Problems with ListAvailableSQLServers (SQLDMO)
    - debuging web controls
    - Microsoft.Office.Interop.Excel
    - Double-click event in datagrid?

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland