Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > convert qbasic to vb5


Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2001, 08:40 AM
tomjansen
Guest
 
Posts: n/a
Question convert qbasic to vb5


i want to convert a qbasic 4.5 program with dialog the com ports to a VB 5 application.
Please help me.



Reply With Quote
  #2  
Old 01-15-2001, 08:58 AM
Helmar
Guest
 
Posts: n/a
Default Re: convert qbasic to vb5

What does "with dialog the com ports" mean?

In general, the only way to port such an application would be to create a new VB5/6 application from scratch, adding all the user interfaces.

Then, if you have SUB's or FUNCTION's or even open code from your old version, you should be able to cut and paste them into your VB app with little or no changes.

Of course, since I don't think you can "Cut" from a DOS application, you'll have to save the QBASIC program in text format and then edit it with a text editor.

As to COM ports, you'll have to use the VB ocx mscomm32.ocx or the one from http://crescent.progress.com to access serial COM ports.



Helmar B. Herman, VP ProtoProducts
Reply With Quote
  #3  
Old 01-15-2001, 11:42 AM
NoahBody NoahBody is offline
Senior Contributor
 
Join Date: Apr 2000
Location: Edge City, CA
Posts: 799
Default Re: convert qbasic to vb5

Helmar,
Open up DOS as just a small window. Right-click on the title bar. On the resulting pop-up menu, choose 'Edit>>Mark". The cursor will become a little larger and you can mark the text with your mouse.
After marking, right-click on the title bar again, choose, "Edit>>Copy" and now it's in the clipboard for use.
BTW - Choosing "Edit>>Paste" will paste the clipboard text onto the command line.

The biggest problem porting is the syntax differences, especially, the "Open" statment and getting rid of line numbers, if there are any. Since VB doesn't have a true vertical delete function, I usually take it into an old copy of QEdit I have.

->Noah

Reply With Quote
  #4  
Old 01-15-2001, 11:49 AM
Helmar
Guest
 
Posts: n/a
Default Re: convert qbasic to vb5

Thanks for the tip on cutting and pasting from a DOS window.

My code with QB45 and PDS 7.1 never used line numbers, but if they were used, then they will have to be removed.

Helmar B. Herman, VP ProtoProducts
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->