 |
 |

04-24-2001, 01:18 PM
|
|
Senior Contributor
Retired Leader * Expert *
|
|
Join Date: Apr 2001
Location: canada, quebec
Posts: 1,334
|
|
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!
|

04-24-2001, 01:34 PM
|
 |
Code Meister
Retired Moderator * Guru *
|
|
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
|
|
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
|

04-24-2001, 01:35 PM
|
|
|
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)
|
|

04-24-2001, 01:40 PM
|
|
Senior Contributor
Retired Leader * Expert *
|
|
Join Date: Apr 2001
Location: canada, quebec
Posts: 1,334
|
|
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!
|

04-24-2001, 01:41 PM
|
|
Senior Contributor
Retired Leader * Expert *
|
|
Join Date: Apr 2001
Location: canada, quebec
Posts: 1,334
|
|
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!
|

04-24-2001, 02:08 PM
|
 |
Code Meister
Retired Moderator * Guru *
|
|
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
|
|
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
|

04-25-2001, 12:24 AM
|
|
|
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
.... .. .... ..
|
|

04-25-2001, 10:10 AM
|
|
|
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
|
|

04-25-2001, 01:04 PM
|
|
|
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
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
|
|
 |
|