Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 5th, 2007, 12:55 AM
Authorized User
Join Date: Mar 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default a wrapper class for visual C++ 6.0 .DLL

Dear friend,

we have a device .dll written in Visual C++ 6.0,

how to write a wrapper class in VB .NET so it can take care of converting
the parameters from C++ to VB .NET ?


Old June 5th, 2007, 01:53 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

If the C++ dll is set up for COM, you shouldn't need to write anything. You can add a reference to the COM dll from visual studio and it will create the COM interop wrapper for you.

Also, the Visual Studio.Net SDK has a Type Library to Assembly converter: tlbimp.exe. You can run this manually to tweak the way the interop wrapper is created.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Activex Dll Problem, Error in : Class does not sup cmualo Pro VB 6 2 May 22nd, 2007 09:38 AM
Regarding Class Library (.dll) from class file manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 March 3rd, 2006 07:32 AM
wrapper class getWriter() method never called milspecs Apache Tomcat 0 January 26th, 2005 05:27 PM
creating a .dll from a .cs class vb_developer C# 1 October 27th, 2004 05:59 PM
To introduce a dll in Visual c++ Bart1980 Visual C++ 2 August 4th, 2004 01:37 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.