Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2004, 09:48 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I agree. We already have had to deal with the issue of how to explain to your clients who are downloading the software on how to get the .NET environment for older PCs. In VB 6.0 it was much simpler (just wrap up the runtime libraries and off you go). In fact, VB.NET is so different that is almost another language entirely. Before designing a new piece we now have to consider which version of VB is more appropriate for this use. While we try to work mostly with .NET, occasionally good old VB 6.0 is the better choice.

Yehuda
 
Old February 20th, 2004, 10:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is some good reading here. I probably didn't say things right and I hesitated to write anything at all about VB versus C. I just get tired of hearing all the flack making VB programmers something less than a C programmer.

I have seen bad code written in VB and bad code written in C. I think what programmers need to concentrate on is a development methodology and the application of available technologies. Like OOP, COM, XML and the like. Personally, I like the hybrid approach let C do what it is good at and let VB do what it is good at.

I can agree with much of what is being said about .NET. But I do think the Internet model, if you will, is upon us. We work on the internet/intranet and the local PC and the transition becomes more seamless all of the time. XML seems to be here, been here, and I have to admit I am behind the power curve.

With the current software I really like the ability to share code with COM objects. I am not sure if you can share the .NET libraries with a VBA application for example. Most of the industrial controls HMI software has VBA and for us to be able to reference a library versus rewriting code is a great benefit. Even though it is not optimized the libraries can be access in .NET as well. So, I see continuing VS 6.0 for a little while longer but still migrating towards .NET.

What I was implying by leveling the playing field with .NET is that if one chooses to write a code module in C# and another in VB.NET they can easily be integrated. From the looks of things the syntactical differences are minor so moving from one to the other should not be much trouble. Currently, what I see as the biggest obstacle to working in C or VB is not how well the application will perform, or what is more productive but what we know. Usually an application is developed exclusively in one language or another. My hope is that we can focus our efforts on solving problems and improving our product and not spending a lot of time trying to determine which language the solution will be written in.

There I have probably said too much and yet not enough.

I really appreciate all of your comments.



Larry Asher
 
Old February 20th, 2004, 10:45 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Larry,

You don't need to share the .NET libraries for VBA. VB.NET can put a COM interface on an object s o as to allow it to be used through COM as well as through .NET
 
Old February 20th, 2004, 12:31 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default

Larry & Yehuda,

Just as a note. You have more steps to manage GUIDs for the .NET exposed COM interfaces, but wrox has a GREAT book about VB.NET and COM interaction. The book explains it well, and gives good advice on how to go about it. I have to admit, I have read the book, but haven't really worked on an Interop project.

Book Info:
Professional Visual Basic Interoperability - COM and VB6 to .NET by Billy Hollis, Rockford Lhotka





John R Lick
[email protected]





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to an ActiveX exe Tweety77 VB How-To 4 September 19th, 2006 01:21 PM
ActiveX.exe to standard exe Kaustav VB How-To 6 February 24th, 2006 12:10 AM
Calling an ActiveX.EXE in C++ xgbnow Visual C++ 4 March 31st, 2004 08:12 AM
unregister activeX exe gbianchi Pro VB 6 2 February 10th, 2004 03:17 PM
ActiveX Exe and Dll Vasudevan VB How-To 1 September 26th, 2003 07:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.