Re: VB Com compatibility
From: John Eikanger [MSFT] (johnei_at_online.microsoft.com)
Date: 09/20/04
- Next message: Naveen: "I get an error when I implement callback objects with custom inter"
- Previous message: Joel Green: "Re: Command Line Arguments"
- In reply to: Ken Halter: "Re: VB Com compatibility"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 20 Sep 2004 20:12:34 GMT
C/C++ components are generally going to be faster, but vb is actually
faster for some things according to a site I saw years ago. How much will
depend on what you are doing. The common wisdom holds that VC++ is about
10% faster vb6, which seems high to me. YMMV
If this is a speed critical application, one thing to take into
consideration is that there is overhead using COM regardless of the
languages used. You need to minimize round trips to get better
performance. This is especially true when you use late binding or DCOM.
As with anything else, make it flexible when you design it and optimize as
needed.
Hope this helps,
John Eikanger
MSDN Communities Team
Microsoft Developer Support
This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| Date: Mon, 20 Sep 2004 10:35:14 -0700
| From: Ken Halter <Ken_Halter@Use_Sparingly_Hotmail.com>
| Subject: Re: VB Com compatibility
| X-Tomcat-NG: microsoft.public.vb.com
|
| rcc wrote:
| > A lot. VB is interpreted (compiled first to "p-code" but still
| > interpreted) while VC is compiled directly to machine code.
|
| Man... you seem to have fallen "behind the times" there. VB can be
| compiled to native code as well as P-Code.
|
| Basically Visual
| "Visual Basic 5 uses the same compiler technology as Visual C++"
| http://www.pgacon.com/BVColumns/BV11.HTM
|
| A Quick Tour of Visual Basic 5.0
| http://www.winnetmag.com/Windows/Article/ArticleID/23/23.html
|
| Of course, it's hard(er) to control "bloat" in VB but that has nothing
| to do with p-code vs machine code.
|
| --
| Ken Halter - MS-MVP-VB - http://www.vbsight.com
| Please keep all discussions in the groups..
|
- Next message: Naveen: "I get an error when I implement callback objects with custom inter"
- Previous message: Joel Green: "Re: Command Line Arguments"
- In reply to: Ken Halter: "Re: VB Com compatibility"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|