Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 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 July 14th, 2004, 02:24 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default New VB Project with C ++ Files

I have to work with an existing API that is written in C++. Is it possible to write the new code in VB and still access the functions that are defined in the C++ libraries and header files? I know .NET has the ability to allow for different parts of a project to be written in differnet languages. I'm just not sure how to do it. Any help would be greatly appreciated. Thanks.
 
Old July 14th, 2004, 02:45 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Compile the api into an ActiveX Dll. ActiveX Dll can be accessed from both VB & VB.Net
 
Old July 14th, 2004, 02:55 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How might one make an ActiveX.dll using Visual Studio?
 
Old July 14th, 2004, 03:32 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This must be done from C++. I am not familiar with the process of doing so and only know it can be done. To find out how to do it, go to a C++ news group and ask how or use google to search for it.

Good Luck,
Yehuda
 
Old July 16th, 2004, 08:15 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Quote:
quote:Originally posted by BSkelding
 I know .NET has the ability to allow for different parts of a project to be written in differnet languages.

This is not true. You can create a solution that includes multiple projects and each project can be based in a different .NET supported language. It may be possible to bring the C++ code into a .NET class library project. You may need to do some converting to it however. Otherwise, I echo what Yehuda suggested. Compile the C++ to an ActiveX COM object and then include a reference to it in your .NET project.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Vb and C# Files in Single Project shriji.1111 General .NET 3 December 16th, 2006 09:44 PM
Installation for VB project pavel Pro VB 6 0 April 13th, 2006 09:32 AM
Setup project with Crystal rpt. files drasko Crystal Reports 2 April 1st, 2005 07:46 AM
ms Project,vb,sql m_ctrl VB How-To 0 June 28th, 2003 10:36 AM
ms project,sql,vb m_ctrl Pro VB 6 0 June 28th, 2003 10:28 AM





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