HDTenEightyP/NetNews huggingface dataset:
From: tommy@msc.cornell.edu (Mike Thompson)
Subject: signal bug in CSET/2 1.0 w/ CS0028
Organization: Cornell-Materials-Science-Center
Date: Thu, 28 Jan 1993 16:57:24 GMT

Hopefully this will get to the appropriate groups in IBM.  Any
suggested workarounds would be appreciated.  I normally trap ^C to
switch operating modes - don't really want the process crashing.

/* ---------------------------------------------------------------------------
-- The following program illustrates a problem in the getch() routine.
-- It seems that signals are caught by getch() and not passed on to the
-- real handlers.  getch() subsequently crashes with a SYS3171 error 
-- when the next character is typed.
--
-- Demonstrating the problem:
--
-- Press any # of characters, and then attempt a <CTRL><BREAK>, a <CTRL>C,
-- a SIGTERM (via KILL), or any other condition.  The condition will not
-- be accepted - but program will halt with a SYS3171 error on next char.
--
-- Compile command: icc -W3 -Sm test.c
--
-- System: C Set/2 compiler w/ CSD's 0014, 0022 and 0028.  All failed.
--         OS/2 2.0 w/ XR06055 installed or 2.1b
--------------------------------------------------------------------------- */
#include <stdio.h>
#include <conio.h>

int main(void) {
	int achr;

	while ( (achr = getch()) != 'z')
		printf("Character pressed: %i\n", achr);
	return(0);
}

-- 
Michael O. Thompson            tommy@msc.cornell.edu
Cornell University             (607) 255-4714

OS/2:  For the few, the proud, the devoted!
From: rom@cci632.cci.com (Rudynell S. Millian)
Newsgroups: comp.os.os2.programmer
Subject: Re: Borland C++: what a dog.
Date: 25 Jan 93 14:33:11 GMT
Organization: [Computer Consoles, Inc., Rochester, NY

In article <CFORTIER.93Jan21152045@genghis.news> cfortier@genghis.news (Chris Fortier) writes:
>
>|	   It is just too bad Borland doesn't take OS/2 seriously. Here is an 
>|   opportunity for Borland to set a standard and run away with the market, and 
>|   they are going to blow it!
>
>
>Au contraire, Borland takes this product very seriously.  How in the world do
>you think Borland is going to "blow it?"  You must be careful about such
>blanket statements.  How can you criticize that which you have not used nor
>seen?!
>
>
>Chris

	Well Borland has certainly not made it easy for prospective customers
to take a peek at the product. No formal feature list has been made available.
The EEP is an incredible $300! I have broused the article on BC++ for OS/2 
in the OS/2 developer magazine, and I don't recall it being said that there
wasn't going to be an OWL equivalent. 
	I don't know about anybody else, but I guess I will be looking
somewhere else, i.e. IBM's Cset/2 c++.
Newsgroups: comp.os.os2.programmer
From: tommy@lynx.msc.cornell.edu.UUCP (Mike Thompson,332,54714,2734927)
Subject: ALL PROGRAMMERS - Write Microsoft
Originator: tommy@snoopy.msc.cornell.edu
Organization: Cornell-Materials-Science-Center
Date: Fri, 22 Jan 1993 15:55:27 GMT

From article <1jnhfnINNn11@uwm.edu>, by tanith@csd4.csd.uwm.edu (Mike Kretzer):
> I just received an upgrade form for Microsoft MASM 6.1.  Does anyone
> know if it will still run under OS/2 as an OS/2 application like
> MASM 6.0?

I also received a notice of the 6.1 upgrade available.  What was my
first response?  I WROTE A LETTER ASKING FOR INFORMATION ABOUT AN
OS/2 COMPABLE VERSION.

ALL PROGRAMMERS!  Please do the same!  If we send enough request to 
the MASM division of Microsoft, perhaps they will consider us real
enough to be included in future releases.  They give you a postage
free envelope.  Just add a note (preferrably on company letterhead)
saying:

"Thank you for the information concerning MASM 6.1.  However, we are
committed to supporting OS/2 environments.  Would you please send me
information on a 32 bit version of MASM supporting OS/2 2.0.  Thank
you."

-- 
Michael O. Thompson            tommy@msc.cornell.edu
Cornell University             (607) 255-4714

OS/2:  For the few, the proud, the devoted!
Newsgroups: comp.os.os2.programmer
From: hankedr@mail.auburn.edu (Darrel Hankerson)
Subject: 2.1 breaks CKermit, MSC ok
Organization: Auburn University, Alabama
Date: Sat, 23 Jan 1993 04:32:07 GMT

Config: OS/2 2.1 beta, VGA, no-87, 8M, HPFS, 386-33.

1. Most of the time, a shell-escape from CKermit 5A(188) (16- or 32- bit) will
lock the session entirely. It is not possible to kill such a session. To
use the com port, a re-boot is required. Same experience with cmd.exe
and 4os2/32. Note: The shell-escape is done after a connect--shell escapes
before a connect are ok.

2. The 2.1 beta breaks the "strings" utility from hobbes (it just repeats the
same stuff). This program worked under 2.0 GA. Changing the stack size (with
exehdr) did change the behavior, but did not fix the program. Does anyone 
have source for a good "strings" program?

3. M Kretzer reported earlier that the 2.1 beta breaks MSC 6.00A. In later
mail, he remarked that his problems may have been due to the DELDIR bug.
MSC 6.00A works under 2.1 beta in my preliminary tests.

4. I get plenty of locked sessions, expecially from Windows apps. The 
Maple V windows demo can't do help (and will eventually lock). I've been
able to lock cardfile (launched seamless) by asking for help.

--Darrel Hankerson hank@ducvax.auburn.edu
From: mpearson@lynx.dac.northeastern.edu (Matthew Pearson)
Newsgroups: comp.os.os2.programmer
Subject: OS2 Communications routines and calls to other programs wanted..
Date: 27 Jan 93 17:18:20 GMT
Article-I.D.: lynx.1993Jan27.171820.17753
Organization: Northeastern University, Boston, MA. 02115, USA

I am looking for a routine in 'c' for OS2 than can scan the incoming
data on a COM port for a particular sting.. when it finds said sting is
copys it off and then executes another program or itself (if I can make
it a TSR/PM minimized) depending on the data it receives...

ie:

look on COM1 for: XPQW1100
if COM1.input = XPQRW1100 do.. 'x'

input?

Matt
Xref: sparky comp.os.os2.programmer:7884 comp.os.os2.misc:43538 comp.windows.misc:1821
From: cjeffery@cs.arizona.edu (Clint Jeffery)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc,comp.windows.misc
Subject: New Implementation of Icon with OS/2 Graphics Support
Keywords: Icon OS/2 window support
Date: 22 Jan 93 07:50:58 GMT
Followup-To: comp.os.os2.programmer
Organization: University of Arizona UNIX Users Group


The latest version of the Icon programming language, 8.7/8, is now
available for the following platforms:

	MS-DOS
	MS-DOS/386
	Macintosh MPW
	OS/2 2.0
	UNIX
	VMS

The OS/2, UNIX, and VMS versions support the X-Icon graphic
facilities.  Under OS/2, graphic support uses Presentation Manager;
under UNIX and VMS, the same calls use the X Window System for graphics.

This is the same version of Icon that has been available until now
for only Unix and VMS.  Compared to previous versions, this version
adds some new functions, keywords, bug fixes, and other improvements.
Document IPD188 (available by FTP) describes the features of
Version 8.7; Version 8.8 is essentially identical from an external
standpoint and differs only in internal details.

To pick up program material electronically, do an anonymous FTP
to cs.arizona.edu, cd /icon, and get READ.ME for navigation
instructions.

Persons who have Internet mail access but not FTP access can get
files via ftpmail.  For instructions, send an e-mail message with
the word

	help

in the message body (not the subject line) to

	ftpmail@cs.arizona.edu

Please address any questions to icon-project@cs.arizona.edu, not
to icon-group.
    
Ralph E. Griswold			ralph@cs.arizona.edu
Department of Computer Science 		 uunet!arizona!ralph
The University of Arizona		602-621-6609 (voice)
Tucson, AZ 85721			602-621-9618   (fax)
--
Clint Jeffery - cjeffery@cs.arizona.edu
Follow our Soviet brothers: Outlaw Democrats and Republicans.
Join the League for Programming Freedom!  Write to league@prep.ai.mit.edu
Newsgroups: comp.os.os2.programmer
From: gthome@bulldogs.austin.ibm.com
Subject: Re: Getting Source Code View in PM debugger
Date: Fri, 22 Jan 1993 15:40:35 GMT
Distribution: na
News-Software: IBM OS/2 PM RN (NR/2) v0.16g by O. Vishnepolsky and R. Rogers
Reply-To: gthome@dss1.austin.ibm.com
Organization: IBM Austin

In <1993Jan22.010500.15975@samba.oit.unc.edu> Norman.Yee@launchpad.unc.edu (Norman Yee) writes:
>
>I'm having a problem getting the PM debugger to show me the source
>code view of a program; all that shows up is the disassembly code view.
>This is the debugger from the November PDK.
>
>I have turned on debugging info in the linker generation options and
>compiler debug options of Workframe/2.  I have turned optimization
>off in the compiler object code options.
>
>Anyone have any hints?
>
If your source code is in the current directory it should show up.  If not,
you should "SET PMDPATH=x:\dir\source".  I can't quite remember off hand,
it may be IPMDPATH instead of PMDPATH.  Try both and see what works.

This path must be set to where your source code is so that IPMD can find the
source.  Otherwise, IPMD does not know where to look.


>  Norm
>
>--
>   The opinions expressed are not necessarily those of the University of
>     North Carolina at Chapel Hill, the Campus Office for Information
>        Technology, or the Experimental Bulletin Board Service.
>           internet:  laUNChpad.unc.edu or 152.2.22.80


=============================================================================
| Gerry Thome              | t/l  678-2256   fax : t/l  678-8597 | Internal |
| IBM-Austin               | (512)838-2256         (512)838-8597 | Zip 9132 |
| OS/2 DCE RPC Development | 11400 Burnet Rd, Austin, TX 78758   | MSU '89  |
| I don't speak for IBM in any way...                            | Go Dogs! |
=============================================================================
Newsgroups: comp.os.os2.programmer
Subject: Re: Any Pascal for OS/2 yet?
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Date: Tue, 26 Jan 1993 17:14:53 GMT
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago

In article <4fND9ZK00WBO8BnEwM@andrew.cmu.edu> cj00+@andrew.cmu.edu (Carl B Jabido) writes:
>Just wondering, is there _any_ OS/2 specific Pascal compiler out there
>yet?  I heard that Lightspeed Pascal is out.  How is that?  Is it 32-bit?

TopSpeed, actually.  I have it, and it isn't too bad.  The
documentation could stand some improvement.  The technical support has
been pretty good.  It is still 16-bit, but Clarion has been
insinuating that there will be a 32-bit version.

The only 32-bit Pascal on the market right now is Microway's.

-- 
Timothy F. Sipples      | READ the OS/2 FAQ List 2.0i, available from
sip1@ellis.uchicago.edu | 128.123.35.151, anonymous ftp, in /pub/os2/all/info
Dept. of Econ., Univ.   | /faq, or from LISTSERV@BLEKUL11.BITNET (send "HELP")
of Chicago, 60637       | [Post to ONE newsgroup only AFTER reading the List.]
From: pr@umiacs.umd.edu (Jesus M. Rodriguez)
Newsgroups: comp.os.os2.programmer
Subject: emx and gcc
Keywords: emx and gcc
Date: 27 Jan 93 19:37:35 GMT
Organization: University of Maryland Institute for Advanced Computer Studies
Originator: pr@fnord.umiacs.umd.edu



What is the difference between gcc and emx?  I noticed that gcc has more 
header files including the os2incl ones i.e. pmbitmap.h, etc.

Which is better?

Can the headers from gcc2-222 be used with emx0.8f?

Jesus M. Rodriguez
pr@umiacs.umd.edu




Newsgroups: comp.os.os2.programmer
From: luca@dedalo.unipg.it (Luca Priorelli)
Subject: Re: Languages
Organization: Universita' di Perugia
Date: Thu, 21 Jan 1993 18:53:31 GMT

sip1@ellis.uchicago.edu (Timothy F. Sipples) writes:

>In article <1993Jan14.181310.9892@apgea.army.mil> rcmerrit@apgea.army.mil (Robert C. Merritt <rcmerrit>) writes:
>>What programing languages are there out there for os/2 2.0? I know theres
>>C but what else? Is therre a Basic or Pascal available?

>Yes to both.

And what about Cobol? I never heard anything about e 32 bit version of
Microfocus'.

Luca
Newsgroups: comp.os.os2.programmer
From: nbl@solomon.technet.sg (Ng Beng Lim)
Subject: Re: Printing problem of HPLJ3. Urgent
X-Newsreader: TIN [version 1.1 PL8]
Date: Thu, 28 Jan 1993 22:31:29 GMT

Ng Beng Lim (nbl@solomon.technet.sg) wrote:


: --

: ==================================================================
: Ng Beng Lim                       IDEMail:      NBL@MOEHQ
: Computer Services Branch          Bitnet:       BENGLIM@ITIVAX
: Ministry of Education             Internet:     nbl@solomon.technet.sg
: Kay Siang Road                    Fax:          (65)-473-7513
: Singapore 1024
: ===========================

--

==================================================================
Ng Beng Lim                       IDEMail:      NBL@MOEHQ
Computer Services Branch          Bitnet:       BENGLIM@ITIVAX
Ministry of Education             Internet:     nbl@solomon.technet.sg
Kay Siang Road                    Fax:          (65)-473-7513
Singapore 1024
===========================
From: john.navas@uttsbbs.uucp (John Navas)
Newsgroups: comp.os.os2.programmer
Subject: OS2.LIB
Date: 24 Jan 93 09:23:00 GMT
Article-I.D.: uttsbbs.4083.18.uupcb
Reply-To: john.navas@uttsbbs.uucp (John Navas)
Distribution: world
Organization: The Transfer Station BBS, Danville, CA - 510-837-4610/837-5591

nak7558@tamsun.tamu.edu (505247007) writes:

 > I was looking at the gameport.sys available from Hobbes
 > (gamept.zip).  It makes use of a library called os2.lib.  What is
 > this library and where can I get it?

That's probably the OS/2 1.x API import library that came with
Microsoft C6.

An equivalent import library comes in IBM's OS/2 Toolkit.

Best regards,
John
              
----
+------------------------------------------------------------------------+
| The Transfer Station BBS (510) 837-4610 & 837-5591 (V.32bis both lines)|
| Danville, California, USA. 400+ MB Files & FREE public Internet Access |
+------------------------------------------------------------------------+
Newsgroups: comp.os.os2.programmer
From: kurs1-4@orvillezdv.uni-mainz.de (Johannes Martin)
Subject: Re: How do you use Non-PM graphics (VGA)?
Organization: Johannes Gutenberg Universitaet Mainz
Date: Fri, 22 Jan 1993 16:53:46 GMT

In article <5#k30!p@rpi.edu>, myersr@aix.rpi.edu (Robert Parish Myers) writes:
|> How do you use VGA graphics (both 320x200x256 and 640x480x16) in a
|> full screen OS/2 Session
|> 
|> a) In General?
|> b) In emx 0.8e (which I'm using now) and emx0.8f(which I plan to be
|> using soon)?
|> 
|> 		Thanx,
|> 		Rob Myers (myersr@rpi.edu)
|>   
a) You have to use Vio-Calls (documented in prcp.zip somewhere on hobbes).
b) - To use Vio-Calls with emx-0.8e you have to use the additional package
     emx16bit (available in a subdirectory of emx-0.8e on hobbes).
   - emx-0.8f includes a 320x200x256 graphics library.

Johannes Martin (jmartin@vzdmzx.zdv.uni-mainz.de)
Newsgroups: comp.os.os2.programmer
From: jawetzel@athena.mit.edu (The Rottweiler)
Subject: Rexx question
Organization: Massachusetts Institute of Technology
Date: Sun, 24 Jan 1993 18:19:58 GMT

I'm doing a little Rexx programming and came upon the following:

--------------------------------------
/* */                               
                                    
line = "prpipgphptp"
                                    
do while((n = pos("p", line)) \= 0) 
 line = overlay(" ", line, n)       
end                                 
                                    
say line                            
                                    
line = "prpipgphptp"                
                                    
n = pos("p", line)                  
do while(n \= 0)                    
 line = overlay(" ", line, n)       
 n = pos("p", line)                 
end                                 
                                    
say line                            

-------------------------------

The output when this program is run is the following:

prpipgphptp
 r i g h t

My question is simple - is this a bug or a limitation of the 
Rexx programming language?  Or is it that I'm doing something
wrong?

						Jake
From: john.navas@uttsbbs.uucp (John Navas) 
Newsgroups: comp.os.os2.programmer
Subject: GOOD BOOK FOR OS/2 PROGRA
Date: 27 Jan 93 00:23:00 GMT
Distribution: world
Organization: The Transfer Station BBS, Danville, CA - 510-837-4610/837-5591
Reply-To: john.navas@uttsbbs.uucp (John Navas) 

weisber@ecf.toronto.edu (WEISBERG ELLIOT) writes:

 > What is a good book for programming OS/2??  I saw the Microsoft
 > book titled Notebook or something, but it looked like it did not
 > have much substance.  Thanks.

You might start with:

"Advanced OS/2 Programming" by Ray Duncan (Microsoft Press, 1989)

Although it's for 16-bit OS/2 1.x, the concepts are directly
transferable to OS/2 2.x.

Best regards,
John
                                                                                               
----
+------------------------------------------------------------------------+
| The Transfer Station BBS (510) 837-4610 & 837-5591 (V.32bis both lines)|
| Danville, California, USA. 400+ MB Files & FREE public Internet Access |
+------------------------------------------------------------------------+
From: peterf@vnet.ibm.com (Peter Forsberg)
Date: Mon, 25 Jan 93 09:57:25 SWE
Newsgroups: comp.os.os2.programmer
Subject: Re: Starting full screen app from PM
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.1

In <1993Jan24.070106.513@ncsu.edu> SEAN MICHAEL SCOGGINS writes:
>I have a need to start a full screen program from a Presentation Manager
>program.  The program need to run in it's own session, and not be
>terminated when the PM app is ended (in other words, I need to be able
>to do a 'start /fs progname' from within my PM program.  I am using
>EMX/GCC and have tried both "spawnl(P_SESSION|P_FULLSCREEN,.....)" which
>started the FS program just fine, but killed it when the PM program was
>closed, and "system("start /fs progname)" which hung the machine!
>
>Any help is appreciated,
>thanks in advance,
>sean scoggins
>
>smscoggi@eos.ncsu.edu
>

The OS/2 API DosStartSession is the right one to use for what you
want to do. You'll need the OS/2 Toolkit, though.

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: pmuellr@vnet.ibm.com (Pat Mueller)
Date: Mon, 25 Jan 93 17:52:01 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: Rexx question

>I'm doing a little Rexx programming and came upon the following:
>/* */
>
>line = "prpipgphptp"
>
>do while((n = pos("p", line)) \= 0)
> line = overlay(" ", line, n)
>end
>
>say line
> ...
>The output when this program is run is the following:
>
>prpipgphptp
>...

The construct
   do while((n = pos("p", line)) \= 0)
while legal, probably doesn't do what you want it to.  It compares
the variable "n" with the value of the pos() function call.  The
resulting comparison (whose value is 0 or 1) is compared to 0.

Basically, rexx has no assignment operator that can be used within
expressions (like C does).  Your second try is the way to do it.

When in doubt, insert a 'trace ?i' line at the top of your program
and you'll see all the gory details of statement evaluation.  An
example follows:

     4 *-* line = "prpipgphptp"
       >L>   "prpipgphptp"
       +++ Interactive trace.  TRACE OFF to end debug, ENTER to continue

     6 *-* do while((n = pos("p", line)) <> 0)
       >L>   "N"
       >L>   "p"
       >V>   "prpipgphptp"
       >F>   "1"
       >O>   "0"
       >L>   "0"
       >O>   "0"

    10 *-* say line
       >V>   "prpipgphptp"
   prpipgphptp


If still in doubt, comp.lang.rexx is the best place to get answers
regarding rexx in general.

Patrick Mueller                  addr:  pmuellr@vnet.ibm.com
IBM Cary, North Carolina         phone: 919-469-7242
From: lansche@torolab6.VNET.IBM.COM (Martin Lansche)
Date: Thu, 28 Jan 93 08:53:50 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: basic
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
            <1993Jan26.210637.4258@apgea.army.mil>

In <1993Jan26.210637.4258@apgea.army.mil> Robert C. Merritt <rcmerrit> writes:
>ok, sincce there doesn't appear to be an os/2 version of basic or pascal,
>and since I refuse to work in C,
>
>how can I take my dos basic or pascal complier and make programs that are
>os/2 and/or PM friendly?
>
>Rob Merritt
>

Rob,
   Have you considered REXX?  It comes with OS/2 and is superior to BASIC,
is, in some ways, similar to Pascal (yet without all that type-constrictions).
All variables are strings.... They are defined as they are used... Give it a
try.  REXX = one of the best kept "secrets" of OS/2...

Cheers,
Martin Lansche, IBM PRGS Toronto Lab, Canada
  ________________________________________________________________________
   Ilu Iluvatar en kare eldain a firimoin ar antarota mannar valion :
   numessier.  Toi aina, mana, meldielto -- enga morion : talantie.
   ----------------------------------------------------------------------
   The father made the world for elves and mortals and he gave it into
   the hands of the Lords in the West.  They are blessed, holy and loved,
   except the black one.  He has fallen.  (J.R.R. Tolkien).
  ________________________________________________________________________

Newsgroups: comp.os.os2.programmer
From: tommy@lynx.msc.cornell.edu.UUCP (Mike Thompson,332,54714,2734927)
Subject: Re: Does OS/2 support Shared Memory?
Originator: tommy@snoopy.msc.cornell.edu
Organization: Cornell-Materials-Science-Center
Date: Thu, 21 Jan 1993 17:58:25 GMT

From article <C17Kwo.7E7@techbook.com>, by tonyb@techbook.com (Tony Bennett):
> 
> 
> If this is in the FAQ, I'm sorry.  
> Unix has the concept of shared memory, that is multiple programs accessing a
> common area of memory.  Does OS/2 support that concept and if so what
> functions are used...  a little snippet of code using those functions would
> be very helpfull.
> Thanks in Advance.

Yes, the DosAllocShrSeg function under 1.3 does exactly that.  There is
an equivalent routine in 2.0, but I don't have the call sequence in front
of me.  Check the manual for the developer's kit under memory management
in the CP reference section.  Examples are generally good.

Drop me e-mail if you still have problems.  It might be about time to port
some of that old 1.3 code to 2.0 and learn the new call sequences.
-- 
Michael O. Thompson            tommy@msc.cornell.edu
Cornell University             (607) 255-4714

OS/2:  For the few, the proud, the devoted!
From: hendrik@vedge.com (Hendrik Boom)
Newsgroups: comp.os.os2.programmer
Subject: /Fd in cset
Date: 25 Jan 93 15:50:25 GMT
Organization: Visual Edge Software Ltd.

The cset C++ compiler from the November pdk keeps asking me to
specify the /Fd option.  When I do so, it works fine.
But I haven't found this option in the documentation.

Does anyone know what it means?

-- 
-------------------------------------------------------
Try one or more of the following addresses to reply.
at work:	hendrik@vedge.com,  iros1!vedge!hendrik
at home:	uunet!ozrout!topoi!hendrik