Visual Basic and C++

Status
Not open for further replies.

earl

Well-known member
3,066
In Visual Studio 6:
Add new project
MFC Appwizard (dll)
Add automation feature to the dll

Add a new class from the wizard
(insert->New Class
Specify CCmdTarget as the base class
Choose "Creatable by Type ID"
Specify the name you want to use in VB to create this object

Note that you will only be able to receive events from VB, not create COM events to go to VB

-earl-
 
In VisualStudio .NET, the GUI builder does TONS of work for you (that is if you are building Apps to run on top of the .NET Framework).
It has all the simplicity and functionality of VB, but you can program in any .NET language (for now that means VB.NET, C# and C++.NET).

Its very nice.


In the meantime, the convenient way to make back-ends in C++ for a VB front end is to make an ActiveX object and then reference it inside of your VB app.

Frank
 
Am I the only one wishing that VS7 included something like Borland C++ Builder?
Not to mention VCL kicks MFC's ass so badly it's not even funny :D

VS.NET will probably end up having something decent for C++, but it will be tied to the .NET framework. This might make it a little harder to write ordinary C++ code in there... I really don't know. Haven't had time to play with it yet.
 
Status
Not open for further replies.