need some basic information on visual basic and visual c++ 
Author Message
 need some basic information on visual basic and visual c++

>I need some information about Visual Basic and Visual C++.

>1. Does Visual Basic have object oriententated features like heritage,... .

No. The Microsoft party-line is that inheritance is not a cool feature
in an OO language, anyway. Instead, you use aggregation. This means
you include an instance of your superclass as an object in your
sub-class. Then stitch the two together -- for each method in the
superclass, code an equivalent function in the sub-class that calls
the superclass.

This is a fine approach for objects at a binary level, but come on. in
a single language environment, a lack of inheritance means lots of
unnecessary coding. For example, lets say I want ot make a sublcass
that adds one method to a superclass, which already has 20. I have to
manually code and debug 20 wrapper functions, and then I can add my
one enhancement. What happens if the superclass itself gets
enhancements? I have to find every subclass and manually stitch in the
new enhancments.

>              ------

>2. If you combine differnt languages what are the pro's and con's?
>Topic of interest: combination of program segements developed under
>Visual-C++ and Visual-Basic.

General recomendation is to code performance critical routines in C
and user interface in VB. Two choices are .dll functiona call
interface or OLE object interface.


>a) Writing a program in Visual-C++ and including VBX/OCX Controlls
>produced by using Visual-Basic.

I've generally heard it done the other way around -- code the OCX in
C++ and include in VB application. C++ provides inheritance, and I'm
not sure you can create OCXs in VB4. VB5 may let you create OCXs, but
well just have to wait and see.


>b) Writing a program in Visual-Basic using methods and funktions in .dll
>files, which were produced using Visual-C++.

This is very easy to do.


>Could you tell me which method to favor. Please explain. Or is there
>a better method c) ?

>Thx in advance...
>-  Markus Bauernfeind, Heinrich-Heine-Weg 1, #32, 93051 Regensburg
>-  +49-941-900646

>-   http://www.*-*-*.com/ ~bam04383/

Phil Grisier
Santa Clara, CA

Fri, 05 Mar 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. need some basic information on visual basic and visual c++

2. Orlando, FL - Full time / Contract Visual Basic / Visual C++ Programmer Needed

3. Visual C++ and Visual Basic and Visual J++

4. Visual C++ vs Visual Basic

5. Visual C++/Visual Basic/COM problem

6. visual basic vs. visual c++ which is better

7. Visual BASIC or Visual C++

8. Visual Basic Vs. Visual C++

9. FS: Visual Basic/Visual C++/Computer books 1/2 cover price

10. FS: Mastering Microsoft Visual Basic 4.0 and Visual C++ 4.0 CD-ROMs

11. Database Application : Visual Basic or Visual C++ ??



Powered by phpBB® Forum Software