HDTenEightyP/NetNews huggingface dataset:
From: hank@ducvax.auburn.edu
Subject: Re: emx curses...
Organization: Auburn University, AL
Date: Tue, 10 Nov 1992 23:55:24 GMT

In article <74335@hydra.gatech.EDU>, gt4719b@prism.gatech.EDU (Dave Frascone) writes:
> I just got emx with curses, but whenever I try a curses call,
> I get a core dump.

Try setting TERM and TERMCAP, as in
 set TERM=ansi
 set TERMCAP=c:\emx\etc\termcap.dat

Note: PDCurses from Hessling looks good. I compiled under MSC 6.00A without
problems for testing the sc (Spreadsheet calculator). I'm still working on
the EMX/gcc version. PDCurses compiles fine with EMX, but I get some odd
chars when running sc. 

-- 
--Darrel Hankerson hank@ducvax.auburn.edu
From: francis@vnet.ibm.com (Tim Francis)
Date: Fri, 6 Nov 92 10:31:56 EST
Subject: Questions about certain C functions in C Set/2
Newsgroups: comp.os.os2.programmer
Reply-To: francis@vnet.ibm.com
Organization: IBM Canada Lab, WorkFrame/2 development
Disclaimer: This posting represents the poster's views, not those of IBM

In article <manne.720991382@Minsk>,
manne@Minsk.docs.uu.se (Magnus L|vkvist) writes:
>
>I'm writing an VIO (if that's what a character based app able to run in a
>window is called) app using C Set/2.
>
>I've noticed that kbhit() and getche() are only present in the migration
>libraries and the documentation sounds like "don't use the migration libraries
>for new programs".
>
>Well, what should I use instead? I don't want a PM app and I don't want to
>press RETURN. Should I use an OS/2 API like some category 4 Keyboard Control
>IOCtl Command?
>
>Why isn't kbhit() and getche() supported in the IBM C extensions and only in
>the migration libraries?
>
>/Magnus

The original, poorly conceived plan for C Set/2 was to support some functions
(such as kbhit()) only temporarily, to aid migration from other compilers.
It has now been realized that the need for these functions is not going
to go away, and so as of the next release (available now in beta form
for members of the DAP) the migration library is going to be folded
into the extension library.   -tim
From: green@roboco.UUCP (Anthony Green)
Newsgroups: comp.os.os2.programmer
Subject: Need help with WinSetWindowPos
Distribution: world
Date: Tue, 10 Nov 92 12:00:53 GMT
Organization: Ruddock and Associates


I wish to move and resize third party apps from my own application.
I intend to accomplish this by retrieving the handle for the target 
application's frame window and calling WinSetWindowPos with the new
SWP info (x & y pos and x & y width). 

So far, the target windows are moving to the proper location but I am
having some difficulty with resizing them. It looks as if the frame
window is resizing, but none of its children are. For instance, if I
call WinSetWindowPos with os2chess' frame window handle in order to make it
larger, the frame will grow, but nothing inside will. It's not a simple
matter of not having repainted the window either, as the buttons inside
the frame are active. I was under the impression that if a frame window
is resized it will send WM_SIZE messages, etc., to its children.

Any advice appreciated!

--- Thanks ---

--
Anthony T. Green                  343D St. Clair Ave W, Toronto, Ontario M5P 1N3

Home   (416) 968-0817             Internet: roboco!green@relay.cs.toronto.edu
Office (416) 340-0887             UUCP    : ...!uunet!utai!roboco!green
Date: Tue, 10 Nov 92 11:54:14 +0100
From: Roman_Grzondziel@freax.fido.de (Roman Grzondziel)
Subject: OS/2 memory management (ARGH!)
Newsgroups: comp.os.os2.programmer
Organization: High End Point: 

Hi there,

I am having some problems with OS/2 2.0 lately. There seem to be some
design (!) bugs in the system which seem to eat up the free store!
An exaple:

1.  start the system editor (e.exe)
2.  select the "OPEN" menu and get the file requester
3.  enter *.argh (so that it won't find anything that fits - don't forget
    the wildcard!)
4.  keep pushing the "OPEN" button.

Now watch what is happening with your memory! After few clicks the
system has only 512 kb free store left and begins to expand the swap file.
It seems like you can fill up any partition (no matter how large) this
way :) The memory is being freed but not before I quit the application.

The same happens in every app (including mine) that uses the file
requester! Is there *any* "good" reason for this bug??? (I consider this
being a bug, of course :))

Another annoyance: my program is using the PM interface, starting some
separate windowed and not-windowed threads... I am not using any
dynamic memory functions (like malloc etc.). But still, after playing
with it for a while, I'm getting errors like "Maximum heap size reached"!
(from one of the debugging hooks in my code). Sometimes the application
quits right after this warning. While clicking around, I keep repeating the 
same sequences that do *not* create any new memory objects nor any new items. 
After a while, the memory status display starts showing increasingly shrinking 
store. WHY?! But sometimes the error appears even before this happens! 
AAAAAAAAAARGH!

Can anybody give me a hint?! I would be *very* grateful for any help.
I am getting crazy here searching for a (of course still possible)
bug in my code and not being able to find anything wrong! HELP!


    adios

        Roman

2:242/9.11@fido.org
roman_grzondziel@freax.fido.de
From: fred@oneup.gwinnett.com (Fred Christianson)
Newsgroups: comp.os.os2.programmer
Subject: WinCreateWindow(...pCtlData,..) -> WM_CREATE problem
Summary: mp1 is not always pCtlData
Date: 12 Nov 92 11:06:20 GMT
Article-I.D.: oneup.721566380fred.fred
Organization: One Up Corporation



--
 
I've had this happen in 3 programs I've writen, and now a coworker
just found it happening in his program.

I do a WinCreateWindow() and have the pCtlData parameter pointing
to an initialization structure.  When the window procedure gets
a WM_CREATE message, mp1 is supposed to have the pCtlData pointer, and
most of the time it does.  

But, about 1 in 5-10 times mp1 is not the same as the pointer I had in
WinCreateWindow().  Sometimes it has been 16 bytes off of the correct
pointer, but other times it looks nothing like the origional.  

I've tried having pCtlData point to a local, a global, and a malloc()'ed
structure, and they all do the same things.  

After this happens, WinGetLastError() returns 0x6000.

I've been getting around the problem by setting a global to what pCtlData
should point to, then using the global instead of mp1 in the message.
When I do that, everything works fine.  It also lets me compare the global
to mp1 in the WM_CREATE message, and put up a message box when they 
are different, which comes out to be 1 in 5-10 times.



Fred Christianson (fred@oneup.gwinnett.com)
From: peterf@vnet.ibm.com (Peter Forsberg)
Date: Thu, 5 Nov 92 07:48:30 SWE
Newsgroups: comp.os.os2.programmer
Subject: Re: Can semaphore be released/cleared from other process ?
Reply-To: peterf@vnet.ibm.com
Organization: IBM Corporation
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0

In <1992Nov4.195019.27417@cs.tu-berlin.de> Ernst Kloecker writes:
>Hi,
>
>in a multi-tasking application I am implementing at the moment I want to
>use semaphores to protect critical regions. What happens if a process hangs
>or dies during execution of the critical region ? Can I release/clear this
>semaphore from another process (watchdog) to avoid a deadlock ? Does
>OS/2 provide any mechanism for this situation ?
>
>This question applies to both OS/2 1.3 and OS/2 2.0, because I cannot
>move to OS/2 2.0 right now.
>
>Thanks for any info, Ernst.
>
>--
>
>-----------------------------------------------------------------------------
>Ernst Kloecker      phone: ++49-30-6181635      e-mail: ernst@cs.tu-berlin.de
>-----------------------------------------------------------------------------
>

From the 1.3 CP reference:

 If a process terminates while owning a nonexclusive system semaphore,
 ERROR_SEM_OWNER_DIED is returned to the thread that next gets the
 semaphore through DosSemRequest. That thread takes steps to ensure
 the integrity of the resource.  The thread can release the resource
 by issuing a DosSemClear, or it can reset the ERROR_SEM_OWNER_DIED
 return code condition flagged in the semaphore data structure.

The same goes for 2.0 (but the calls are named differently).
Now, if the owning program hangs (in a tight loop for example) there isn't
much you can do.

Peter
--
Peter Forsberg           E-mail:  peterf@vnet.ibm.com          (primary)
                                  d88-pfo@nada.kth.se        (alternate)
Disclaimer: This posting represents the poster's views, not those of IBM
From: DOE@MAINE.MAINE.EDU (Brian TAZ Doe)
Newsgroups: comp.os.os2.programmer
Subject: Finial cry for CD-ROM driver...
Date: 11 Nov 92 00:19:07 GMT
Organization: University of Maine System

I have checked every angle known to man (at least known to me).  I have
a Sony CDU535 proprietary bus drive. OS/2 only supports scsi. I have
spoken with IBM. They claim that they do not make device drivers for
other companies hardware. Fare answer. So that sends me to Sony. They
claim that they will not support OS/2 and that they have never made
their own drivers anyhow. Interesting answer, but still politically
correct of them. All of the drivers ever made for a Sony CD-ROM has been
made by Microsoft. Ahh. Here is my problem. There is no way in hell that
Microsoft is going to make a driver that is supporting OS/2 and IBM.
They were friendly with me, but had nothing real to offer me. I have
had friends give a whack at trying to make one. That was a dead end
street. All of this has taken me 2 months and created a hideous phone
bill.

My last resort is to post to this newsgroup in hopes to find out any
information. Can someone make me a driver..? Is it even possible..?
Is there a chance that somebody knows of one that already exists..?

If more information is needed, E-Mail me. I know most answers on this
subject, except for the ones I am asking now. If someone is willing to
help me out, then please E-Mail me. If no help comes about drivers, and
not rigged solutions like VDM's, then I will be forced to go back to
Windows 3.1.. a fate clearly worse than death. Thank you in advance.

                                         Sincerly,
                                            Brian D. Doe


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X       Brian TAZ Doe         XX      CAPS       XX "My heart is human, X
X Student Computer Dispatcher XX   Computer &    XX my blood is boiling,X
X  Student Computer Operator  XX Data Processing XX my brain I.B.M..."  X
X       Student Slave         XX     Service     XX        ...STYX      X
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX   U of Maine    XXXXXXXXXXXXXXXXXXXXXXXX
 EMail : Doe@Maine.Maine.edu  XXXXXXXXXXXXXXXXXXXXX
From: nevries@accucx.cc.ruu.nl (Nico E de Vries)
Newsgroups: comp.os.os2.programmer
Subject: Re: Compression routines
Date: 9 Nov 92 21:29:35 GMT
Organization: Academic Computer Centre Utrecht

In <d9mikael.721234522@dtek.chalmers.se> d9mikael@dtek.chalmers.se (Mikael Wahlgren) writes:

>I am looking for good copression/decompression routines.  What I want is
>two functions like:

>Compress(address, resultbufaddr, len) : resultlen
>DeComprss(adress, resultbufaddr, len) : resultlen

>Source code would be nice, but not necessary (but it must be possible to
>use the routines either free or licensing them).  Anyone know where
>to look for this?

A very good place to start is comp.compressio FAQ.

Locating the comp.compression FAQ:
 * The FAQ is posted often to comp.compression and should also be available
   on news.answers as "comp.compression Frequently Asked Questions".
 * The FAQ is also available by anonymous ftp on rtfm.mit.edu [18.72.1.58]
   in directory /pub/usenet/news.answers/compression-faq, files part1 and part2.
 * If you don't have FTP access, you can get the FAQ by a mail
   server.  Send an email message to mail-server@pit-manager.mit.edu
   containing the command "help" (no quotes) for more information.
 * If all above REALLY fails, request the files from nevries@cc.ruu.nl 

>Mikael Wahlgren

Nico E. de Vries  (nevries@cc.ruu.nl) |------------------*   AA   III  PPP
_ This text is supplied AS IS, no warranties of any kind |  A  A   I   P  P
| apply. No rights can be derived from this text. This   |  AAAA   I   PPP
| text is likely to contain spelling and grammar errors. |  A  A   I   P
*---------------------------( Donate to GreenPeace! )----*  A  A  III  P

"The IBM PC is still waiting for a version of the CP/M OS.", G.M. Vose, 1982.
From: rider@geloser.login.qc.ca (Serge Ayotte)
Newsgroups: comp.os.os2.programmer
Subject: Re: DAP in Canada
Date: Sat, 07 Nov 92 22:52:29 EST
Distribution: world
Organization: Gentleman Loser System, Montreal/Qc/Cdn

jpenne@ee.ualberta.ca (Jerry Penner) writes:

> Mark Kovarski <kovarski@zooid.guild.org> writes:
> 
> >This is to all Canadian users that are interested to join the IBM OS/2
> >Developer Assistance Program (DAP). Once joined, you will receive the CD whi
> >will contain the beta OS/2, development tools, and much more. The package is
> >available free of charge in Canada. No $15 or anything like that. Call
> >946-3786 and ask for Ken Fadelle. He will send you the CD along with
>  ^^^^^^^^
> 
> Is that a 1-800 number or what is the area code, please.  
> 
> >everything else.
> -- 
> Jerry Penner   jpenne@ee.ualberta.ca   Try a 1-line .sig today.

The area code is 416, you might get is voice-mail, but he will call back
(at least he did with me <grin> ).
Now the nly thinfg I wonder is what is going on for myself... I faxed
the form on the 23rd of October and no news yet... Ho well. I'll wait
another week that give Ken a call back.

Serge Ayotte

Old MacDonald had a computer, with EIA I/O...
----------------------------------------------------------------------------
| rider@geloser.login.qc.ca | Gentleman Loser System, Montreal, Qc, Canada |
----------------------------------------------------------------------------
From: jtcox@syr.edu (Ted Cox)
Newsgroups: comp.os.os2.programmer
Subject: gcc emx programs can run under windows?
Keywords: emx, windows, gcc
Date: 6 Nov 92 16:39:46 GMT
Reply-To: jtcox@syr.edu
Organization: Syracuse University.

I know this is a goofy question, but...  In OS/2, using gcc and emx, it
is possible to compile programs that will run under DOS systems that
are equipped with emx.  These programs seem to run happily under
Desqview as well.  My question is, will they run under Windows?  The
main issue is being able to use large arrays, exceeding 640K.



---


Ted Cox
jtcox@gumby.syr.edu
From: harris@garfield.catt.ncsu.edu (Michael Harris)
Subject: Re: How Do You Calculate Menu Height?
Organization: North Carolina State University
Date: Thu, 12 Nov 1992 15:14:13 GMT

tdukes@eng.auburn.edu (Todd J Dukes) writes:

>I am trying to calculate the size of the drawing area in a window. I 
>can get the total size, but this seems to include the menu area. I 
>thought about subtracting a constant size for the menu but when the user
>makes the window narrower the menu may become two or more lines. Is there 
>any way to find the current size (verticle height) of a window's menu? 
>The only references I saw in the on-line documentation that comes with the 
>beta OS/2 developer's toolkit is about returning the menu height in responce 
>to a particular message.

Take a look at WinQueryWindowRect().  BTW, if you used WinCreateStdWindow()
you shouldn't need to do this.  The Frame will resize the Client when it
gets resized.  Are you perhaps using a dialog?
______________________________________________________________________________
     Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
 System Administrator, Computer & Technologies Theme Program, NC State Univ.
(My opinions are my own and do not represent those of NCSU or IBM Corporation)
From: francis@vnet.ibm.com (Tim Francis)
Date: Tue, 10 Nov 92 09:53:19 EST
Subject: Re: CSet/2 and port access.
Newsgroups: comp.os.os2.programmer
Reply-To: francis@vnet.ibm.com
Organization: IBM Canada Lab, WorkFrame/2 development
Disclaimer: This posting represents the poster's views, not those of IBM

In article <1992Nov10.002913.22930@netcom.com>,
feustel@netcom.com (David Feustel) writes:
>
>francis@vnet.ibm.com (Tim Francis) writes:
>
>>The next beta of C Set/2 includes many new functions, including inp() and
>>outp().  It should be available by the "middle of November" (know any
>>big computer shows coming up? ;-)     -tim
>
>How do current owners of C Set/2 get the official upgrade (as opposed
>to the beta)? Thanks.

There have been no announcements yet regarding the next "official" (non-
beta) version.   -tim
From: francis@vnet.ibm.com (Tim Francis)
Date: Fri, 6 Nov 92 10:39:27 EST
Subject: NMake, support long filename ?
Newsgroups: comp.os.os2.programmer
Reply-To: francis@vnet.ibm.com
Organization: IBM Canada Lab, WorkFrame/2 development
Disclaimer: This posting represents the poster's views, not those of IBM

In article <1992Nov6.020021.29864@nuscc.nus.sg>,
scstech@solomon.technet.sg (Wilson Lau) writes:
>
>Howdy,
>
>	I'm new to OS/2 and I'm trying to port an application from Unix to OS/2.  While using the NMAKE utility from the Developer's Toolkit, I got a warning
>message on a filename that was longer than 8 characters in length.  Is there
>an option/fix to resolve this ?  I was happy to note that the HP partition now
>supports long filenames but looks like I still have to be constrained by 8-char
>filename limits.  Doesnt't make much sense here.  I would be grateful if
>anyone out there has a solution to this.  Thanks for your kind attention.

There is a bug in the current version of NMAKE, that restricts the use
of HPFS filenames to a OS/2 versions with a minor version >=2 (it should
have also checked the major version).   You can phone the OS/2 support
line (1-800-3IBM-OS2, I think) and request a fixed version of NMAKE --
sorry, I don't have the APAR number.   If you feel adventurous, you can
patch the code yourself.  WARNING: Making the following patch is not
supported!!!!  If in doubt, phone the support line and get the real fix.

For NMAKE version 2.000.000, file size 88013 and file date 3-30-92
use the PATCH utility and specify file offset 7B34.  The data at this
location should be:
   80 3E 6D 15 14 ...
The 14 is the version number.  Change this to 00.  Thus the data
should now be:
   80 3E 6D 15 00 ...

NMAKE will now support HPFS filenames.   -tim
From: pr@umiacs.umd.edu (Jesus Rodriguez)
Newsgroups: comp.os.os2.programmer
Subject: FAQ ?
Date: 14 Nov 92 03:32:11 GMT
Organization: University of Maryland Institute for Advanced Computer Studies
Originator: pr@fnord.umiacs.umd.edu



Could someone please mail me a copy of the latest FAQ for this newsgroup?

Thanks
Jesus M. Rodriguez
pr@umiacs.umd.edu
From: ochealth@unixg.ubc.ca (ochealth)
Newsgroups: comp.os.os2.programmer
Subject: Re: gcc emx programs can run under windows?
Date: 7 Nov 1992 07:07:12 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
NNTP-Posting-Host: unixg.ubc.ca
Keywords: emx, windows, gcc

In article <1992Nov6.113947.2225@newstand.syr.edu> jtcox@syr.edu writes:
>I know this is a goofy question, but...  In OS/2, using gcc and emx, it
>is possible to compile programs that will run under DOS systems that
>are equipped with emx.  These programs seem to run happily under
>Desqview as well.  My question is, will they run under Windows?  The
>main issue is being able to use large arrays, exceeding 640K.

what do you mean? As a compiler for Windows programs? Nope, Windows is
only 16 bit, and GCC doensn't support such limited systems. 
As a 32 bit program? Shure, but only if the EMX DOS extender supports DPMI
(I think it might). I think with a memory manager like QEMM, you should
be able to get EMX programs under DOS/Windows.


>
>
>
>---
>
>
>Ted Cox
>jtcox@gumby.syr.edu


-- 
______________________________________________________________________________
jpm: ochealth@unixg.ubc.ca         
                            Happily using OS/2 2.0 because MS Windows isNT ___
                                                      Insert VapourFeature ^^^
Newsgroups: comp.os.os2.programmer
From: sthiagar@bronze.ucs.indiana.edu (sivasailam thiagarajan)
Subject: Re: How do I iterate through Physical Screen Colors?
Organization: Indiana University
Date: Tue, 10 Nov 1992 13:59:11 GMT

For anyone who's keeping track, I now seem to have a working utility
that displays the physical screen colors in a PM window. (The trick is
to use the PC_EXPLICIT flag when creating the palette). Before I post
the utility (and its source code), I'd like a volunteer to try it out
on their machine. I'd prefer a volunteer with an XGA, since my utility
seems to work fine on all the ET4000 boards around here. Any takers?

Raja Thiagarajan
(sthiagar@bronze.ucs.indiana.edu)
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: C compilers..
Date: 5 Nov 92 22:02:55 GMT
Article-I.D.: njitgw.1992Nov5.220255.5960
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <joiner.720989425@myria> joiner@myria.cs.umn.edu (Jay K. Joiner) writes:
>
>MSC 5.1 and 6 are 16-bit only.  There is a patch that allows 7 to run
>under OS/2, but it is still 16-bit only.  GCC is a good 32-bit bet.
>The DAP CD contains IBM's 32-bit compiler and tools for $15.

The MSC-7.00 patch only allows it to run under OS/2.  It still cannot
produce OS/2 code.


-- 
David Charlap         |"there aren't 50,000 things for which it's worth writing
dic5340@hertz.njit.edu| software; and the computer industry doesn't have enough
----------------------+ programmers to create that much good software.
Therefore, most of it must be worthless" -- Boris Beizer "The Frozen Keyboard"
From: markm@iris.mincom.oz.au (Mark McCafferty)
Newsgroups: comp.os.os2.programmer
Subject: gcc header files missing?
Date: 12 Nov 92 22:47:03 GMT
Organization: Mincom, Brisbane, Australia
X-Newsreader: TIN [version 1.1 PL6]

The string1.h (or stringl.h) header included by std.h is not anywhere I
can see. Any suggestions?

thx
mark
Newsgroups: comp.os.os2.programmer
From: kro@kvamdata.no (Knut Rogde)
Subject: fcntl
Organization: Kvam data as
Date: Thu, 12 Nov 1992 16:24:15 GMT

Hi, I've tried this question on comp.os.os2.networking without success,
	so I thought I'd try it here...

I'm porting a client-server application to IBM's TCPIP for OS2.

I need to be able to set a close-on-exec flag on the sockets I open, because
the server is supposed to start new processes (which should not inherit
any descriptors).

On the UNIX-port I can use fcntl() to set this flag, but this can't be 
done in IBM's implementation (I believe) because sockets and filedesriptors
do not come from the same domain.

I would be grateful for any ideas...

Knut
-- 
------------------------------------------------------------------------
Knut Rogde                      Phone : +47 4 623766
Software engineer               Fax   : +47 4 623985
Kvam data as                    Email : kro@kvamdata.no
From: exujlg@exu.ericsson.se (Jon L. Gauthier)
Newsgroups: comp.os.os2.programmer
Subject: setting master environment in rexx?
Date: 10 Nov 92 18:31:40 GMT
Organization: Ericsson Network Systems, Inc.
X-Disclaimer: This article was posted by a user at Ericsson.
              Any opinions expressed are strictly those of the
              user and not necessarily those of Ericsson.

How do I set master environment variables in a REXX program?  Setting
them in a child env using value() is simple enough, but how about the
master?

Forgive me if this has been hashed before - I'm just starting to use
REXX under OS/2, and my last VM/CMS REXX experience was a couple of 
years ago.

Regards,
------------------------------------------------------------------------------
Jon L. Gauthier                                 Ericsson Network Systems, Inc
EXU/IS/TP Systems Programmer                                  P.O. Box 833875
+1 214 997-0157                                     Richardson, TX 75083-3875

e-mail:  exujlg@exu.ericsson.se, exu.exujlg@memo.ericsson.se
Geez!  Can I be a .com, huh? huh?  Aw, pleeeaaasssse?
------------------------------------------------------------------------------