Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > go from q basic to visual basic 6


Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2001, 01:18 PM
Laurent Laurent is offline
Senior Contributor

Retired Leader
* Expert *
 
Join Date: Apr 2001
Location: canada, quebec
Posts: 1,334
Question go from q basic to visual basic 6


i need to know if it's possible to create a dll or to use a few function written in qbasic in my program built in Visual Basic 6

__________________
Still tons to learn!
Reply With Quote
  #2  
Old 04-24-2001, 01:34 PM
BillSoo's Avatar
BillSoo BillSoo is offline
Code Meister

Retired Moderator
* Guru *
 
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
Default Re: go from q basic to visual basic 6

It's been a long time since I did anything in QBasic, but I don't recall being able to write a DLL in it. But if you could, I imagine it would be a 16 bit DLL and not compatible with VB6.

"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Reply With Quote
  #3  
Old 04-24-2001, 01:35 PM
JerryB
Guest
 
Posts: n/a
Default Re: go from q basic to visual basic 6

As long as they are just functions, you might be able to bring them in as a BAS module ( maybe even cut and paste)

Reply With Quote
  #4  
Old 04-24-2001, 01:40 PM
Laurent Laurent is offline
Senior Contributor

Retired Leader
* Expert *
 
Join Date: Apr 2001
Location: canada, quebec
Posts: 1,334
Default Re: go from q basic to visual basic 6

i don't think i could cut and paste because the key words aren't the same in q basic compared to visual basic?? the trouble is that i realy don't know q basic .... to young for that language... lol

__________________
Still tons to learn!
Reply With Quote
  #5  
Old 04-24-2001, 01:41 PM
Laurent Laurent is offline
Senior Contributor

Retired Leader
* Expert *
 
Join Date: Apr 2001
Location: canada, quebec
Posts: 1,334
Default Re: go from q basic to visual basic 6

when we compile isn't it the processor taht decides 16 - 32 bit??


__________________
Still tons to learn!
Reply With Quote
  #6  
Old 04-24-2001, 02:08 PM
BillSoo's Avatar
BillSoo BillSoo is offline
Code Meister

Retired Moderator
* Guru *
 
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
Default Re: go from q basic to visual basic 6

Short answer is no.

To give you an example, remember VB4? It could compile for 16bit or 32 bit, depending on how you set it up.

I've written DLLs in VC++ 1.0 for use with VB3 (ie. 16bit dlls) but when we switched to VB6, we also had to upgrade VC++ to create 32bit dlls.

So essentially, it's a function of the program as to what kind of DLLs it creates.

"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Reply With Quote
  #7  
Old 04-25-2001, 12:24 AM
n6jah
Guest
 
Posts: n/a
Default Re: go from q basic to visual basic 6

I've been converting several programs I've written in Quick Basic 4.5 (and VB 1.0 for DOS for crying out loud) to VB6.0 and have found that I have been able to cut and paste large segments of code with little or no changes... especially functions and subs.

While some QB key words are gone in VB, like the DATA and READ statements, and INKEY function... most of them remain. You have to be careful with undefined variables since they are integers in QB and variants in VB. And sending and receiving data from the screen using the print and input statements are gone... replaced by msgbox and inputbox etc...

Try the cut and paste... you might be surprised at the similarities... and besides, what's the worst that could happen?

good luck
jim

.... .. .... ..
Reply With Quote
  #8  
Old 04-25-2001, 10:10 AM
Dazz
Guest
 
Posts: n/a
Default Re: go from q basic to visual basic 6

If you understand VB you should be able to work out what the Qbasic code is doing, a lot of the commands are exactly the same.
Major differences is the obvious screen handling (it being dos based) and the way that files are opened and manipulated.
I worked with QB45 for many years, and found it easy to migrate to VB4, so should be the same backwards.
What does this QB program do? would it not be easier to re-write the code in VB if you are more comfortable with that environment?

I would be happy to look at any code you have (as long as it aint 'War and Peace'), and see if I can convert some for you.

QB was 16 bit, so even if you could make a DLL it would not have worked.

Dazz
Live2Give

Reply With Quote
  #9  
Old 04-25-2001, 01:04 PM
Helmar
Guest
 
Posts: n/a
Default Re: go from q basic to visual basic 6

You'll just have to copy the code to VB6 and modify it.

Get ready to do a LOT of this when porting your apps from VB4,5,6 to VB.NET!

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
 
 
-->