Discussion:
I need help with my DOS application
(too old to reply)
emina
2004-02-11 13:42:47 UTC
Permalink
I have to make DOS app in VB6,but after c# .NET it is very hard to me
now.
So, if somebody can help me with some codes where can I see how to
read and write in DOS prompt and ofcourse how to catch functional keys
events and do some actions after.
Thank you!
I am lost.
Emina
Mike Deakins
2004-02-17 01:41:32 UTC
Permalink
VB for Windows can not create Console applications.
--
Mike J. Deakins
For the shining star in my skies.
Post by emina
I have to make DOS app in VB6,but after c# .NET it is very hard to me
now.
So, if somebody can help me with some codes where can I see how to
read and write in DOS prompt and ofcourse how to catch functional keys
events and do some actions after.
Thank you!
I am lost.
Emina
Derek Ross
2004-02-17 21:03:00 UTC
Permalink
Post by Mike Deakins
Post by emina
I have to make DOS app in VB6,but after c# .NET it is very hard to me
now.
So, if somebody can help me with some codes where can I see how to
read and write in DOS prompt and ofcourse how to catch functional keys
events and do some actions after.
Thank you!
I am lost.
VB for Windows can not create Console applications.
VB for DOS on the other hand is good at creating DOS apps.

Cheers

Derek
Mike Deakins
2004-02-18 05:35:14 UTC
Permalink
Exactly.

But be aware that VB for DOS creates 16-bit applications rather than 32-bit.
--
Mike J. Deakins
For the shining star in my skies.
Post by Derek Ross
Post by Mike Deakins
Post by emina
I have to make DOS app in VB6,but after c# .NET it is very hard to me
now.
So, if somebody can help me with some codes where can I see how to
read and write in DOS prompt and ofcourse how to catch functional keys
events and do some actions after.
Thank you!
I am lost.
VB for Windows can not create Console applications.
VB for DOS on the other hand is good at creating DOS apps.
Cheers
Derek
Badmuts
2004-02-25 09:02:52 UTC
Permalink
Post by Mike Deakins
VB for Windows can not create Console applications.
It can. It's just a bit harder to do...

Bm
BZ
2004-04-23 03:24:41 UTC
Permalink
My experience with hooking a console to VB6 has been horrible in the past.
I have made it work, but never without eventually crashing.


So, as you say, it can be done, just a bit harder.
Post by Badmuts
Post by Mike Deakins
VB for Windows can not create Console applications.
It can. It's just a bit harder to do...
Bm
Charles Kincaid
2004-02-27 19:04:56 UTC
Permalink
Post by emina
I have to make DOS app in VB6,but after c# .NET it is very hard to me
now.
So, if somebody can help me with some codes where can I see how to
read and write in DOS prompt and ofcourse how to catch functional keys
events and do some actions after.
Thank you!
I am lost.
Emina
Try http://www.allapi.net and get the API guide. It has examples of how
to launch a console window, print to it, and read key strokes from it.
The real challenge is to attach to the current console as in the case
where your program is running from a command file (batch file).

After that try http://www.powerbasic.com and but a copy of the console
compiler. Just as powerful as VB without forms. For example I have a
lttle program that reads the command line using text to speech. The
resulting executable is 17k and needs no installer. Power Basic console
compiler has built in stuff for the console and CAN do standard GUI
windows while the GUI compiler has all the windows stuff built in.
--
ATB

Charles Kincaid
Loading...