public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* question from new user re wsock32.dll + msvcrt.dll (and other stuff)
@ 1999-03-07 21:33 THORMODSEN, ARNE D (HP-Corvallis, ex1)
  1999-03-31 19:45 ` THORMODSEN, ARNE D (HP-Corvallis, ex1)
  0 siblings, 1 reply; 2+ messages in thread
From: THORMODSEN, ARNE D (HP-Corvallis, ex1) @ 1999-03-07 21:33 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

I'm really new to all this so if this is a dumb question, sorry.

I've tried to compile a command-line version of telnet that uses both
winsock and direct console I/O (_kbhit() & _getch()).  It compiles with
the MS compiler, but does not play well in the cygwin env (escape
sequences, for example, don't get interpreted but rather passed through
as DOS "funny chars", so I guess the whole cygwin I/O magic is
being bypassed, which sort of makes sense.  If I set CYGWIN=tty it
still doesn't behave totally correctly, but I haven't really worked this out
yet.
However, other things I do go belly up when I do this, so it isn't really
an option).

Anyway,  I tried to recompile it with GCC.  I defined Win32_Winsock and
linked with wsock32 (for sockets) and msvcrt (to get _kbhit and _getch).
It compiles, but gives a "Exception: STATUS_STACK_OVERFLOW" when
the dlls are loaded, before the program even runs.  I gather, from reading
the archives, that this can happen if two dlls try to initialize the same items.
Is this my problem?  If so, am I hosed?  I tried some of the workarounds
in the digest, like using "select()" to code my own "kbhit()".  But, try as
I might, I could not find a way to get a non-blocking read from STDIO to
simulate "_getch()".

Anyway, any enlightenment, including "give up, it's impossible" would be
helpful.

Thanks,

--arne

Arne Thormodsen
Hewlett-Packard Co.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* question from new user re wsock32.dll + msvcrt.dll (and other stuff)
  1999-03-07 21:33 question from new user re wsock32.dll + msvcrt.dll (and other stuff) THORMODSEN, ARNE D (HP-Corvallis, ex1)
@ 1999-03-31 19:45 ` THORMODSEN, ARNE D (HP-Corvallis, ex1)
  0 siblings, 0 replies; 2+ messages in thread
From: THORMODSEN, ARNE D (HP-Corvallis, ex1) @ 1999-03-31 19:45 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

I'm really new to all this so if this is a dumb question, sorry.

I've tried to compile a command-line version of telnet that uses both
winsock and direct console I/O (_kbhit() & _getch()).  It compiles with
the MS compiler, but does not play well in the cygwin env (escape
sequences, for example, don't get interpreted but rather passed through
as DOS "funny chars", so I guess the whole cygwin I/O magic is
being bypassed, which sort of makes sense.  If I set CYGWIN=tty it
still doesn't behave totally correctly, but I haven't really worked this out
yet.
However, other things I do go belly up when I do this, so it isn't really
an option).

Anyway,  I tried to recompile it with GCC.  I defined Win32_Winsock and
linked with wsock32 (for sockets) and msvcrt (to get _kbhit and _getch).
It compiles, but gives a "Exception: STATUS_STACK_OVERFLOW" when
the dlls are loaded, before the program even runs.  I gather, from reading
the archives, that this can happen if two dlls try to initialize the same items.
Is this my problem?  If so, am I hosed?  I tried some of the workarounds
in the digest, like using "select()" to code my own "kbhit()".  But, try as
I might, I could not find a way to get a non-blocking read from STDIO to
simulate "_getch()".

Anyway, any enlightenment, including "give up, it's impossible" would be
helpful.

Thanks,

--arne

Arne Thormodsen
Hewlett-Packard Co.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-03-31 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-07 21:33 question from new user re wsock32.dll + msvcrt.dll (and other stuff) THORMODSEN, ARNE D (HP-Corvallis, ex1)
1999-03-31 19:45 ` THORMODSEN, ARNE D (HP-Corvallis, ex1)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).