943,703 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jul 13th, 2004
1

Beyond Qbasic...

Expand Post »
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
Similar Threads
Reputation Points: 11
Solved Threads: 0
Newbie Poster
QB_Pete is offline Offline
10 posts
since Jul 2004
Jul 13th, 2004
1

Re: Beyond Qbasic...

Borland Delphi for one. You have options of creating everything in a stand alone executeable or using either run time dlls or packages.
Reputation Points: 24
Solved Threads: 8
Posting Whiz
bentkey is offline Offline
321 posts
since Apr 2004
Jul 13th, 2004
0

Re: Beyond Qbasic - Thanks!

Thanks Bentkey, any others with simlar responses, please reply.

Pete
Reputation Points: 11
Solved Threads: 0
Newbie Poster
QB_Pete is offline Offline
10 posts
since Jul 2004
Jul 13th, 2004
1

Re: Beyond Qbasic - Thanks!

Quote originally posted by QB_Pete ...
Thanks Bentkey, any others with simlar responses, please reply.

Pete
Power Basic has a Console Compiler that makes text mode programming easy.

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.
Reputation Points: 11
Solved Threads: 0
Light Poster
Buff is offline Offline
40 posts
since May 2004
Jul 13th, 2004
1

Re: Beyond Qbasic...

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
Team Colleague
Reputation Points: 36
Solved Threads: 2
PFO Founder
big_k105 is offline Offline
308 posts
since May 2003
Jul 13th, 2004
1

Re: Beyond Qbasic...

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.
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002
Jul 14th, 2004
0

Reply to Inscissor

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
Reputation Points: 11
Solved Threads: 0
Newbie Poster
QB_Pete is offline Offline
10 posts
since Jul 2004
Jul 14th, 2004
0

Reply to C++ suggestion.

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
Reputation Points: 11
Solved Threads: 0
Newbie Poster
QB_Pete is offline Offline
10 posts
since Jul 2004
Jul 14th, 2004
0

Reply to Buff

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
Reputation Points: 11
Solved Threads: 0
Newbie Poster
QB_Pete is offline Offline
10 posts
since Jul 2004
Jul 15th, 2004
0

Re: Beyond Qbasic...

I'm sure I'm the same one you are talking about.

PowerBasic requires no runtimes and now supports LPRINT.
It also has an LPRINT attach that can use a portname used by windows.
(i.e. not limited to LPT1,etc)

As I said again, support is the best too on their forum.
Reputation Points: 11
Solved Threads: 0
Light Poster
Buff is offline Offline
40 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Legacy and Other Languages Forum Timeline: Creating Mobile Applications using GBasic
Next Thread in Legacy and Other Languages Forum Timeline: Switch Loop





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC