Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB 3 to VB 6 conversion

Status
Not open for further replies.

jbrowne

Programmer
Feb 1, 2000
182
IE
Hi folks,<br>&nbsp;&nbsp;&nbsp;&nbsp;I am just starting a project to convert a VB 3 application up to VB 6. I am having problems with a number of 3th party controls which are not converting up. Is there a conversion tool available for doing this automatically or has anyone found any shortcuts for doing this - rather than physically changing each control individually (there is over 1000 instances of the controls in question).<br>&nbsp;&nbsp;&nbsp;&nbsp;Any suggestions would be much appreciated. <br>
 
if they are VBX there are no ways that I know of that you can convert these controls, trying to convert a 16bit VBX into a different type of 32Bit OCX, is usally impossible without the source code for the original controls, if it were just a VB3 project to Vb6, that should be easy enough since VB6 is backward compatible unfortunatly VBX are obselete and not support, btw what purposes do your VBX serve you, there is quite possibly a already built-in VB6 control that can perform the same task just as well or better. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Hi Karl,<br>&nbsp;&nbsp;I was afraid that, that was the case about the VBX's and OCX's. The main 3th party control that we use is an oxbutton (like a command button only it has images on it). I presume that there is now that type of button available in VB 6 but its the hassle of changing each one on each form. There is up to 20 buttons on some forms and over 100 forms. I guess I am just looking for a shortcut out of this dogwork<br><br>John B <br>
 
well VB6 supports graphical buttons now, you just need to change the Style to graphical, but I understand your problem. considering so many buttons, you ever considered a graphical menu? <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
We converted a large(ish) application to VB5 a while ago - which is about the same work.<br><br>The approach was fairly simple but also quite tedious.<br><br>Open the original.vbp file to be converted in notepad<br>For each form in the app to be converted<br>&nbsp;Open the .frm in notepad<br>&nbsp;For each .vbx control that doesn't convert automatically<br>&nbsp;&nbsp;Add the equivalent VB6 control to a test form in a test project<br>&nbsp;&nbsp;Save the test project<br>&nbsp;&nbsp;Open the test project in notepad<br>&nbsp;&nbsp;Copy Object line for the VB6 control to original.vbp<br>&nbsp;&nbsp;Open the test form in notepad<br>&nbsp;&nbsp;Copy VB6 control section to the .frm<br><br>As I said - tedious. It did get us there though, and made me vow never to use 3rd party controls again, and I've stuck to that.<br> <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Please -- Don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
In the past when working with VB as a hobby, I always tried to use API whenever possible, I felt ActiveX controls, were much too large, and useless to hog the bandwidth when distributing, and I've often found most API commands were always faster. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top