Skip to main content
GameDev.net gamedev.net
🔒 Locked

C++.NET code in VB.NET

Started by soconne Mar 24, 2004 at 12:43 PM 1 replies 350+ views
Original Post
soconne
soconne
Does anybody know if you can use C++ header files or source code in Visual Basic .NET? I keep reading all this stuff about managed C++ and stuff, but I do not understand it. Basically here is what I want to do: I have a .DLL file, with a .LIB file, and a bunch of header files for a 3d game engine I''m using. I want to create a level editor with them, but MFC sucks. So I want to know if there is a way to use the .DLL file and C++ header files in VB.NET so I can use the interface of VB and the code of VC++. Is this possible??
Author Freeworld3Dhttp://www.freeworld3d.org
SiCrane
SiCrane
It is possible to use a DLL written in unmanaged C++ with VB .NET. Try reading the .NET documentation on Interoperating with Unmanaged Code. Specifically, pay attention to the section on platform invoke.
alnite
alnite
very possible indeed.

You don''t need DLL or LIB or any other junks. Just make a VC.NET project and a VB.NET project under the same solution. In VB.NET project, Add Reference, and choose your VC.NET project.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.