Nitro for VB


...or what to do if VB reaches its limits

VB is a very powerful language that supports nearly all modern technologies. What makes VB so powerful? I think, that there are three major reasons for that:

1. It is the easy syntax of Basic itself. If someone ever tried C/C++, you will see that the syntax of C/C++ is more abstract than Basic. If you take the time and really learn C/C++ it will become as handy as Basic, but the beginning is easier with Basic.

2. The creation of GUI is very simple. Have you ever created an application, that heavily used GUI and then tried to port it to C/C++? Have fun with it =(

3. VB is very expandable through its strictly used COM concept. Every component,that you use in VB (ActiveX controls, COM-DLLs(/components), VB classes etc.) are based on the COM technology. COM-Components can be created with nearly any modern language also with VB. Most of the COM-components VB consists of are written in C++.

Using components written in other languages lets you use the vigorousnesses of these languages with VB.

The main criticism to VB is, that the native VB language commands are processed slower than in other languages (e.g. C++, Delphi, Smalltalk etc.) But, hey, why not use VB as framework for your application and write time critical functions in another language? This could make your VB application rock. Take my GameAI-Lib as a living example for such a task.

In this article, I will show you, how you can create a COM-component using Microsoft Visual C++ 6.0 and how you can use it within your VB application. The only things you need are the compilers (VB and VC) and a little C++ knowledge. You will see, it will be very easy.

Next: Getting started | 1 | 2 | 3 | 4 | 5

1 comment

Tutorial Console

Tutorial by:

Torsten Damberg

Date: 2000 May 11


1 comment

Latest comment

by: Soulmartyr

I'm not sure about anyone else, but in VB 2005 Express Edition, things seem to run just as fast as VC++ when you compile them and run the stand-alone.

Is anyone else seeing this? I made two different .DLL libraries, one in VB2k5, one in VC++. The method in the libraries did a calculation of the SIN(30) *2 in a for-next loop for five-thousand repitions. I saw an average difference of .0000002 seconds in running the two different versions. I used QueryPerformanceCounter to time everything.

Post a Comment

Printer Friendly

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 118 visitors within the last 20 minutes
RSS News Feed