| | |
Beyond Qbasic...
Please support our Legacy and Other Languages advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jul 2004
Posts: 10
Reputation:
Solved Threads: 0
OK, not the best title but in essence true. I have programmed in Quickbasic since 1995. I love the language, but changes in printers, the adddition of USB ports, and the change to DOS emulation on the 2000/NT/XP platforms indicate a need for another language. I wrote a VB.NET console application to work on all Windows printers. As soon as I tried to place it from my XP (Has Visual Net Studios on it) to my 98, I got a message that I would need to install the .Net Framework on my 98 before I could run the program. Quickbasic, as you all probably know, has a stand-alone exe option. You make an exe, distribute it to another computer, and it runs.
My question is this. What other languages would be able to take advantage of the Windows systems (like the Windows printer driver) but would not require any other product downloads to the host computer to run the exe?
Any discussion is welcome,
Pete
My question is this. What other languages would be able to take advantage of the Windows systems (like the Windows printer driver) but would not require any other product downloads to the host computer to run the exe?
Any discussion is welcome,
Pete
•
•
Join Date: Apr 2004
Posts: 321
Reputation:
Solved Threads: 8
Borland Delphi for one. You have options of creating everything in a stand alone executeable or using either run time dlls or packages.
•
•
Join Date: May 2004
Posts: 40
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by QB_Pete
Thanks Bentkey, any others with simlar responses, please reply.
Pete
It has a DOS-like feel and many of the commands and statements are the same or with minor changes. You have the added capability of using windows
api, etc if needed or wanted. No runtime modules required, tight code, and
the BEST support on their forum.
take a look at powerbasic.com
There are also plenty of third-party add-ons if you want or need them.
check out LPRINT ATTACH
for your printer.
C++
its would beable to do everything you want it to and would be a stand alone exe file
and you can get compilers free for it
its would beable to do everything you want it to and would be a stand alone exe file
and you can get compilers free for it
You can still use VB.NET and package up in an installation to include the .NET framework so the user wouldn't have to download it and install it. If you still want to stick to the BASIC language, I suggest you try Visual Basic 6.0.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
•
•
Join Date: Jul 2004
Posts: 10
Reputation:
Solved Threads: 0
I read about "How to Deploy" .NET applications and one of the options was to use .dotnetfx.exe to install the .NET Framework. I looked up the size of the file and it was some 23MB! My contention against using VB.NET is that 23MB is too much run-time code to include with a 1 MB business application that would run on it's own through DOS. If Microsoft ever provides the .NET Framework as a standard for all their future platforms (Longhorn is next in 2006) then they may have a decent product. Right now, unless I am way off-base about the size of a .NET Framework installation, I think they missed the mark for any developer that wants to make commercial applications.
Thanks for the reply. Comments to the contrary welcome,
Pete
Thanks for the reply. Comments to the contrary welcome,
Pete
•
•
Join Date: Jul 2004
Posts: 10
Reputation:
Solved Threads: 0
Yes, I have considered that language. In fact. I have a URL to download a free C++ compiler called (of all things) "Bloodshed." The author assures everyone he just picked the name to get his product noticed. I'll give it a try, in spite of the name.
Sometimes I wonder why JAVA is not given more publicity. From what I have heard, that language will work on any platform. Anyway, it is great to have these forums to talk stuff like this over. There is just never enough time to learn about everything that is out there, otherwise.
Thanks,
Pete
Sometimes I wonder why JAVA is not given more publicity. From what I have heard, that language will work on any platform. Anyway, it is great to have these forums to talk stuff like this over. There is just never enough time to learn about everything that is out there, otherwise.
Thanks,
Pete
•
•
Join Date: Jul 2004
Posts: 10
Reputation:
Solved Threads: 0
I know a Buff that posts on Qbasic.com. In any event, thanks for reply and yes, I have looked over Power Basic and also one called Liberty Basic. Liberty basic requires you distribute their run-time module or some such gimmick. I know a Jonathan S. that has Power Basic and used it to write a printer program. From our discussions, he said the source code for his project was about 50K. The VB.NET one I made is 8K, but apparently you need 23 MB of run-time code downloaded to get it to work - lol. I do like Basic and with dlls and Window support, Power Basic might be the ticket.
It seems to be the new Unicode compatible printers that do not support ASCII characters (and therefore will not support LPRINT in QB that create a printing problem. LPRINT still works on XP to parallel printers that support the ASCII character set.) Also, USB ports are not supported in QB. I SHELL out these situations to NOTEPAD and use the /p switch to print. The only problem is that to control the margins, you have to set them manually or design a program to mess with the registry, where these settings are stored. Amazingly enough, RTF files can be written to set margins for WORD, but the switches that set these margins are ignored by Notepad and Wordpad. You cannot automatically print in WORD, because it does not recognize the /p switch! Just some added info, in case you're interested.
Thanks,
Pete
It seems to be the new Unicode compatible printers that do not support ASCII characters (and therefore will not support LPRINT in QB that create a printing problem. LPRINT still works on XP to parallel printers that support the ASCII character set.) Also, USB ports are not supported in QB. I SHELL out these situations to NOTEPAD and use the /p switch to print. The only problem is that to control the margins, you have to set them manually or design a program to mess with the registry, where these settings are stored. Amazingly enough, RTF files can be written to set margins for WORD, but the switches that set these margins are ignored by Notepad and Wordpad. You cannot automatically print in WORD, because it does not recognize the /p switch! Just some added info, in case you're interested.
Thanks,
Pete
![]() |
Similar Threads
- QBASIC under Windows XP (Visual Basic 4 / 5 / 6)
- qbasic program under Windows XP (Legacy and Other Languages)
Other Threads in the Legacy and Other Languages Forum
- Previous Thread: Creating Mobile Applications using GBasic
- Next Thread: Switch Loop
| Thread Tools | Search this Thread |






