vb class in c++

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I wonder if it is possible to include visual basic class to a C++ project
within a solution.

Thanks

Thomas
 
thomas said:
Hello,

I wonder if it is possible to include visual basic class to a C++ project
within a solution.

If the C++ project is a managed C++ project you can add a VB.net class to
that solution yes.
I have a Chrome project that contains a C# class in the solution.


Best Regards,

Jeroen Vandezande
 
No, each project must only contain classes that belong to the target
language. A C++ project can only compile C++ files and will complain with
any other language. You can create separate projects for each language
though.
 
You always have two options with code in more than one language:
1. Reference the VB project from the C++ project in the same solution.
2. Convert the VB code to C++.

--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter & VB to C++ converter
Instant J#: VB to J# converter
 
I added the VB Project Reference to my C++ Project. But that is not enough
for the compiler/linker. Can you give me a hint/link?

Thanks

Thomas
 
I'm not sure what the problem is, but why not just convert the VB class to
C++/CLI?
You can do this with the demo edition of Instant C++ VB Edition.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter & VB to C++ converter
Instant J#: VB to J# converter
 
Back
Top