Home All Groups Group Topic Archive Search About

QBasic 4.5 modules in VB.Net?

Author
17 Jun 2009 12:30 AM
Moiv
I have a lot of useful functions written in QBasic 4.5
QB4.5 creates .OBJ .EXE and .QLB files

Is it possible to use anything from QB4.5 in VB.Net?
Perhaps convert an .OBJ or .QLB file into a .DLL file?

Author
17 Jun 2009 1:21 AM
Nobody
"Moiv" <spam@qeidrafting.com> wrote in message
news:xOWZl.19141$y61.532@news-server.bigpond.net.au...
>I have a lot of useful functions written in QBasic 4.5
> QB4.5 creates .OBJ .EXE and .QLB files
>
> Is it possible to use anything from QB4.5 in VB.Net?
> Perhaps convert an .OBJ or .QLB file into a .DLL file?

You will have to convert them manually. If they are too big, you can use
FreeBasic; which is close to QB, but it has more language features that are
similar to VB.Net. You can use it to make a standard DLL that you can access
from VB.Net. There are DLL samples included in the compiler. Compiled code
doesn't require any runtime, but the IDE is not as sophisticated as VB,
especially for Windows GUI applications.

Main page:
http://www.freebasic.net

Features:
http://www.freebasic.net/index.php/about?section=features

Differences from QuickBASIC
http://www.freebasic.net/index.php/about?section=diff

FreeBasic compiler:
http://www.freebasic.net/index.php/download

IDE:
http://sourceforge.net/projects/fbedit/
Author
17 Jun 2009 5:43 AM
Moiv
Show quote Hide quote
"Nobody" <nob***@nobody.com> wrote in message
news:OQ0Q8nu7JHA.5780@TK2MSFTNGP04.phx.gbl...
> "Moiv" <spam@qeidrafting.com> wrote in message
> news:xOWZl.19141$y61.532@news-server.bigpond.net.au...
>>I have a lot of useful functions written in QBasic 4.5
>> QB4.5 creates .OBJ .EXE and .QLB files
>>
>> Is it possible to use anything from QB4.5 in VB.Net?
>> Perhaps convert an .OBJ or .QLB file into a .DLL file?
>
> You will have to convert them manually. If they are too big, you can use
> FreeBasic; which is close to QB, but it has more language features that
> are similar to VB.Net. You can use it to make a standard DLL that you can
> access from VB.Net. There are DLL samples included in the compiler.
> Compiled code doesn't require any runtime, but the IDE is not as
> sophisticated as VB, especially for Windows GUI applications.
>
> Main page:
> http://www.freebasic.net
>
> Features:
> http://www.freebasic.net/index.php/about?section=features
>
> Differences from QuickBASIC
> http://www.freebasic.net/index.php/about?section=diff
>
> FreeBasic compiler:
> http://www.freebasic.net/index.php/download
>
> IDE:
> http://sourceforge.net/projects/fbedit/
>
>

Thankyou for your comprehensive reply. I have downloaded FreeBasic and it
looks like I can use my existing functions with minimal changes. This is the
exact result I was after.

Thanks again :)
Author
17 Jun 2009 10:02 AM
nak
> Thankyou for your comprehensive reply. I have downloaded FreeBasic and it
> looks like I can use my existing functions with minimal changes. This is
> the exact result I was after.

You might want to consider porting them to a newer language, such as VB.NET,
I'm sure there would be plenty of capacity for optimisation that you can
make in order to improve your functions.  You will probably also find that
the .NET Framework does some of it for you already.

Nick.