Re: Guru help needed: How to do sockets in DOS
- From: "JJ" <jj@xxxxxxxxxx>
- Date: Mon, 7 Aug 2006 16:44:22 -0400
I really don't think so - if you come across an example, I'd like to see it.
Perhaps you mean the QuickWin library?
According to Wikipedia (not that it is always correct):
http://en.wikipedia.org/wiki/Win32_console
"In earlier versions of Windows, there were no native support for consoles.
To simplify the task of porting applications to Windows, Visual C++ was
supplied with QuickWin, a library that implemented basic console
functionality inside a regular Window. Since Windows 3.1 and earlier was
merely a graphical interface for MS-DOS, most text applications that ran on
earlier Windows versions were actually MS-DOS applications running in "DOS
boxes"."
And
http://en.wikipedia.org/wiki/QuickWin
"Since the release of Windows NT, Microsoft has included support for console
windows in the Windows operating system itself, eliminating the need for
QuickWin."
"Alexander Nickolov" <agnickolov@xxxxxxxx> wrote in message
news:%23j$ElhkuGHA.2036@xxxxxxxxxxxxxxxxxxxxxxx
Windows 3.1 did have console applications for sure. These
could not be run under plain DOS as they contained the DOS
stub stating they require Windows. Not sure when they have
been initially introduced (perhaps in Windows 3.0?). You can
check for yourself if you have VC 1.52 or earlier...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"JJ" <jj@xxxxxxxxxx> wrote in message
news:uIHR18PuGHA.1272@xxxxxxxxxxxxxxxxxxxxxxx
It's been a while, but I didn't think there was such as thing as a
"console 16-bit application".
I thought "console applications" where not introduced until Windows NT.
I thought under 16-bit Windows, "console" applications were just DOS
programs.
Since Windows Sockets was implemented as a DLL (winsock.dll) and DOS
programs cannot use DLL's, there was not a standard way to use TCP/IP
functions under 16-bit Windows. You could use a 3rd party TCP/IP stack
that provided DOS libraries, but then the program was tied to that
stack - there was no similar DOS standard. Although I sort of recall
seeing some code that allowed DOS programs to use the Microsoft WfWG
TCP/IP stack.
"Alexander Nickolov" <agnickolov@xxxxxxxx> wrote in message
news:u3aRbkntGHA.452@xxxxxxxxxxxxxxxxxxxxxxx
Consider using Windows for Workgroups 3.11 and a console
16-bit application. This is _not_ DOS, but pretty close.
Otherwise you need to find a TCP stack for DOS and
program against it - DOS doesn't provide one. Now, I'm
not an expert on Win16 networking, I have some vague
recollection (which may be false), that WfW included a
TCP stack, whereas older Windows versions (3.1 and
previous) didn't. I'm sure others will correct me if I'm wrong.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"DaleBert" <DaleBert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0AF1F418-8EEC-4CEC-B0CE-EC3100FFFADB@xxxxxxxxxxxxxxxx
Hi,
Does anyone know how to do sockets in DOS? I have been assigned to save
a
16-bit DOS program that can't be updated. The customer wants me to make
a
static library that intercepts the I/O driver calls and send the data
out and
reads back over a TCP socket to a Windows host. Then the program will
then
run in a DOS box in a Windows machine (the host may or may not be on
the same
machine).
Sounds good in theory, but I have no idea how to do this and neither
does
anyone else around here. The code is set up to compile in Visual C++
1.52 and
uses several libraries that weren't brought over into the 32-bit world,
so it
would be hard to update. I tried to set up a simple example DOS program
using
WINSOCK functions, but it won't compile (probably because it is
including
files like windows.h in DOS).
I suppose I could use something other than TCP, but I am not sure what
would
be supported any better. I need synchronous and asynchronous sockets to
simulate both function calls and interrupts (or find a way to get the
host to
create real interrupts in the DOS box).
If anyone knows where you would go to get this kind of info, please let
me
know!
(This may be the wrong discussion group, but I couldn't find a DOS one)
Thanks,
Dale
.
- Follow-Ups:
- Re: Guru help needed: How to do sockets in DOS
- From: Alexander Nickolov
- Re: Guru help needed: How to do sockets in DOS
- From: Arkady Frenkel
- Re: Guru help needed: How to do sockets in DOS
- References:
- Re: Guru help needed: How to do sockets in DOS
- From: Alexander Nickolov
- Re: Guru help needed: How to do sockets in DOS
- From: JJ
- Re: Guru help needed: How to do sockets in DOS
- From: Alexander Nickolov
- Re: Guru help needed: How to do sockets in DOS
- Prev by Date: Re: Kill remote Process(service)
- Next by Date: Re: WriteFile to mailslot created by another processes on same XP machine fails with network error
- Previous by thread: Re: Guru help needed: How to do sockets in DOS
- Next by thread: Re: Guru help needed: How to do sockets in DOS
- Index(es):
Relevant Pages
|