HDTenEightyP/NetNews huggingface dataset:
From: howard@castor.cs.uga.edu (Les Howard)
Newsgroups: comp.os.os2.programmer
Subject: Looking for a good C compiler.
Date: 4 Sep 92 20:32:40 GMT
Article-I.D.: athena.1992Sep4.203240.11194
Organization: University of Georgia, Athens
Originator: howard@castor

I am looking for a good C complier to run under OS/2.  It needs to work with
OS/2 1.3 and OS/2 2.0.  Could someone reccomend a good one to me.

	Thanks,


-- 
===========================================================================
Mr. Leslie P. Howard                    "Mr. Lehrer's muse (is) not    
University of Georgia                    fettered by such inhibiting  
howard@castor.cs.uga.edu                 factors as taste"...New York Times
From: byer@adobe.com (Scott Byer)
Newsgroups: comp.os.os2.programmer
Subject: Re: Alternatives to Codeview & IPMD
Date: 28 Aug 92 18:01:07 GMT
Article-I.D.: adobe.1992Aug28.180107.27703
Reply-To: byer@adobe.com (Scott Byer)
Organization: Adobe Systems Incorporated

Carlos Rimola-Sarti  car@btr.com writes

> Codeview's tendency to crash before our processes do

IPMD has the same tendancy - plus a seriously brain-dead
interface.  Please post info on debuggers.

I'm looking for something on the quality level of a dbx
or gdb - a command line interface is a requirement (or
at least I haven't found a GUI only debugger that lets
me do everything I need to do, IPMD being especially
guilty).

Scott Byer                                   NeXTMail: byer@adobe.com
Adobe Systems Incorporated               These are *my* opinions, and  
1585 Charleston Road, P.O. Box 7900        do not necessarily reflect
Mountain View, CA 94039-7900             the opinions of my employer.
---------------------------------------------------------------------
From: santeew@sisters.cs.uoregon.edu (Wes Santee)
Newsgroups: comp.os.os2.programmer
Subject: Codeview barfing...
Date: 3 Sep 92 17:09:37 GMT
Article-I.D.: cs.1992Sep3.170937.17917
Distribution: usa
Organization: University of Oregon Computer and Information Sciences Dept.

'Lo all, and apologies if this is a FAQ.

My work requires me to use C7 in some development work
that I am doing for them.  I, however, refuse to use Windows 3.1,
or DOS w/386 Max.  I run an all OS/2 2.0 ship.

I've got the special OS/2 hosted compiler for C7, but that
only solves half of the problem.  Codeview 4.0 WILL NOT run.
OS/2 traps it and shuts down.  I can't very well develop
without a debugger now and I REFUSE to go back to DOS/Win.

Has anyone out there gotten it to run?  I've tried using an older
version of Codeview (the one that comes with MSC6.00) but the
real mode version of Codeview is so flaky it can't get past the first
instruction.

Thanks for the help,

-- 
Wes Santee			| "It all seems so stupid,
santeew@cs.uoregon.edu		|   it makes me want to give up.
				|  But why should I give up,        -Martin 
				|   when it all seems so stupid."      Gore 
Newsgroups: comp.os.os2.programmer
From: harris@garfield.catt.ncsu.edu (Michael Harris)
Subject: Re: SHORT, USHORT, and other absurdities
Organization: North Carolina State University
Date: Sun, 23 Aug 1992 18:23:33 GMT

roelofs@pan.arc.nasa.gov (Greg Roelofs) writes:

>But what will you do on a machine where shorts are 64 bits by default,
>but can be 24 or 46 bits via a compiler switch?  Likewise for 64-bit
>floats and 128-bit doubles?

Ahhhhh! This guy's got it.  As I understand it, MS & IBM defined SHORT,
USHORT, LONG, ULONG, et. al. to guarantee the size of your variables.

I think it is GUARANTEED that USHORT is always defined as 16 bits and ULONG is
alway defined as 32 bits where int and double can be different bit sizes
depending upon the operating system and the compiler.

In MS or IBM C, I think that int is a 16 bit value where in DEC's Ultrix, int
is a 32 bit value. I'm not sure what AIX uses, but I would assume (again, this
is an assumption) that int is a 32 bit value. Also, I assume that IBM's
compiler with AIX has defined in it SHORT and USHORT as 16 bit values and
LONG and ULONG as 32 bit values.  (The last part is just supposition.)

______________________________________________________________________________
     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: "stephen dawson" <stephen.dawson@canrem.com>
Newsgroups: comp.os.os2.programmer
Subject: c set/2 cs00013, did
Date: 2 Sep 92 20:46:22 EST
Reply-To: "stephen dawson" <stephen.dawson@canrem.com>
Distribution: comp
Organization: Canada Remote Systems

to: ameline@vnet.ibm.com

IA> CSD 14 is up there now -- I just uploaded it. It's also on the OS/2
IA>Support BBS, and will be on the NSC BBS in a day or so.

IA>Regards,
IA>Ian.
IA>P.S. It's been less than a month since CSD 11. I put that up on 08/08.
IA>There's 14 new fixes in CSD 14. (coincidence? -- you be the judge :-)

14 !

I was trying to get 11 !

Why can't these get on the IBM Canada BBS?

    STEPHEN         Look through the Windows and you will see OS/2!
    ^^^^^^^    :-)  Walking and chewing gum at the same time.

 stephen.dawson@canrem.com
 Entered 09-02-92 at 7:55pm in Downsview, Ontario

 * DeLuxe2/386 1.25 #3969 * The greatest awards in life are those you bestow.
--
Canada Remote Systems  - Toronto, Ontario/Detroit, MI
World's Largest PCBOARD System - 416-629-7000/629-7044
From: LANSCHE@TOROLAB6.VNET.IBM.COM ("Martin Lansche")
Newsgroups: comp.os.os2.programmer
Subject: RE:C Set/2 Question in malloc
Date: 28 Aug 92 16:44:05 GMT

Uma,
   I saw your append in the comp.os.os2.programmer forum.  I believe that
I can help.  C Set/2 is an ANSI compliant "C" compiler.  Sun's compiler
is K&R "C". The ANSI definition for malloc is:

void * malloc(size_t);

While the K&R definition is:

char * malloc();

K&R compilers will not complain about implicit casts between potentially
different sized pointers.  ANSI compilers do.  To explain the messages

- (12,15) gives the line number (12) and the column number (15)
containing the operation that is illegal.
- (12,10) says the the operand is at column 10
- and (12,17) says the 2nd operand is at column 17
All of this is supposed to help you determine exactly where the error is
and to what the messages are referring.

To fix the problem, add a cast to the malloc, i.e.

array= (long *) malloc(50*sizeof(long);

Cheers,
Martin Lansche  lansche@torolab6.vnet.ibm.com
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Can a 16-bit LIB.EXE work with 32-bit .OBJ files?
Date: 26 Aug 92 20:52:00 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

I have the LIB.EXE from Microsoft's C 6.0 compiler.  It works
perfectly on 16-bit .OBJ files, and I've been able to get a list of
function names out of OS2386.LIB with it.

I was wondering if it will work to produce a library file from 32-bit
.OBJ files (such as that which gcc/2 outputs).

Does anyone know?



-- 
   |)  David Charlap           "I don't even represent myself
  /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
 ((|,)
  ~|~  Hi! I am a .signature virus, copy me into your .signature file.
Newsgroups: comp.os.os2.programmer
From: smackinl01@cc.curtin.edu.au
Subject: AT BIOS Int. 4Ah
Organization: Curtin University of Technology
Date: Fri, 4 Sep 1992 01:33:17 GMT

Another "Is it just me, or what?" department.
While writing a simplistic program in Turbo Pascal v6.0 for MS-DOS that
basically just echos characters from the console to the comms port and
vice-versa, it became necessary to use the "alarm" interrupt - int 4Ah - found
in the IBM AT's BIOS.

After many hours of hair-tearing and fruitless debugging, I decided to test the
program under plain-vanilla DOS. "Aha!" says I. "The program _does_ work".

So, my question:
Does the OS/2 _virtulise_ the AT BIOS alarm interrupt? Can someone please check
that in fact interrupt 4Ah is triggered as advertised? - Under both a VDM and a
DOS5 boot from drive A the program failed to work as the interrupt never
triggered. 

The interrupt btw is _supposed_ to be triggered when the AT real-time clock
reaches a certain alarm-time value. The alarm-time value - in BCD H:M:S format
- is set by another BIOS interrupt whos number escapes me at the moment.

Is there a problem with OS/2's interpretation of certain BIOS functions? Can 
someone clear this up? 

-- 
Simon.
Have you got a form 27/b?
From: grega@netcom.com (Greg Altman)
Newsgroups: comp.os.os2.programmer
Subject: Re: WM_CLOSE, WM_DESTROY, WM_QUIT
Date: 31 Aug 92 23:41:35 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

shiva@well.sf.ca.us (Kenneth Porter) writes:
: Just what are the relationship of the various window shutdown
: messages?
: 
: What should a window do to shut itself down without shutting down its
: parent?  WinDestroyWindow(hwndSelf)? Which message should handle saving
: the window's state, WM_CLOSE or WM_DESTROY?
: 
: My current understanding is that the client window proc should process
: WM_CLOSE by invoking WinDestroyWindow() on its frame, and then return 0.
: Any resource deallocation or state-saving is done while processing
: WM_DESTROY.
: 
: Ken

Do not rely on any but WM_DESTROY message. This message is guaranteed to
be received by your window BEFORE it is actually destroyed (or at the start
of the destruction process). This is where all of your saving and other
cleanup should be done. The window IS destroyed after the message is 
processed, and you cannot do anything about it.

WM_CLOSE is passed to the FRAME window if the user selects the Close
menu item from the system menu. What you do with the message is
your affair. If you do not process this message, the frame window will
get a WM_QUIT message and effectively end. You WILL get the WM_DESTROY
message before the window is destroyed.

You can stop the end of processing by intercepting the WM_CLOSE message
and not passing it onto the default window procedure.

WM_QUIT message should be sent to the window either in response to the
WM_CLOSE message or to shut down the message reading queue. The result
of this message is the termination of processing by the WinGetMsg()
function.

The usual scenario is:
	WM_DESTROY	you are being destroyed and there is nothing
			you can do about it any more
			this message is guaranteed
	WM_CLOSE	you have a choice of either refusing to
			shut your application down or of allowing
			the application to proceed (this message
			is not guaranteed before the window is gone)
	WM_QUIT		you are being notified that the application
			or the system is about to end. You can ether
			destroy the message queue yourself, let the
			system do it for you or refuse to quit or
			this message is not guaranteed
			to continue with the shutdown
-- 
Greg Altman grega@netcom.com
Newsgroups: comp.os.os2.programmer
From: gruen@ipc1.uni-hannover.de (Lutz Grueneberg)
Subject: Re: PM and C++
Summary: C++ class library for PM access
Reply-To: gruen@ipc1.uni-hannover.de
Organization: University of Hannover, Germany
Date: Thu, 3 Sep 1992 09:02:23 GMT

In article news@veces.stgt.sub.org, haen@veces.stgt.sub.org (Herbert Neugebauer) writes:
>Are there any plans for C++ support for programming
>the presentation manager?? 

Yes, I've just started to build such an Interface. It will be influenced
by InterViews an the SUN UIT. 

Some prototyping code of this is included into CfgEd. The next upcoming
product realized with PMviews (the name of the game) will be PMiClass,
the Presentation Manager Version of the InterViews C++ Class Browser
(base system is running, Interface is missing).

The PMviews C++ class library for PM access will be compileable 
with emx/g++.

Lutz
---
// Lutz Gr"uneberg
// Lehrgebiet Rechnernetze und Verteilte Systeme
// Universit"at Hannover
// Schlosswender Str. 5
// D-3000 Hannover 1, Germany
//
// Email: Grueneberg@rrzn.uni-hannover.dbp.de
//
//				... have a  n.i.c.e. day



Newsgroups: comp.os.os2.programmer
From: daveb@netcom.com (Dave Briccetti)
Subject: Re: Problem with WM_ACTIVATE.
Date: Tue, 01 Sep 92 17:23:29 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

Alfred.Kayser@dnpap.et.tudelft.nl (Alfred Kayser) writes:
: Help, I have a problem with a PM program. When I open a (WinCreateStdWindow)
: standard window, but which is hidden, and I show it using
: a WinShowWindow, PM sends me a WM_ACTIVATE message. So far so good,
: I set the 'active' flag and returns FALSE. So far as is documented, but
: PM crashes and gives a protection violation. Help I'm lost in PM!!!
: 
Perhaps you could run the program under a debugger and find out exactly
where you are crashing.

-- 

Dave Briccetti, Owner, Dave Briccetti & Associates
OS/2 Developer/Consultant
P.O. Box 1713
Lafayette, CA  94549-7013
From: dmm@vnet.ibm.com (dave)
Date: Fri, 28 Aug 92 15:37:19 EDT
Newsgroups: comp.os.os2.programmer
Subject: Re: C Set/2 Question in malloc
Organization: IBM Canada Lab
News-Software: UReply 3.0
X-X-From: dmm@vnet.ibm.com (Dave Mooney)

            <59958@mimsy.umd.edu>

In <59958@mimsy.umd.edu> Jesus Rodriguez writes:
> The problem is not malloc.h or the need for stdlib.h  it is as someone
> posted before.
>
>>>>  if  (( array= malloc(50 * sizeof(long)))!= NULL)
>
> this line should read
> if (( array = (long *) malloc(50 * sizeof(long))) != NULL)
>               ^^^^^^^ this is what needs to be added to the line.

The problem is too <malloc.h> and the need to include <stdlib.h>.  malloc
is defined as returning a (void *), which is assignment compatible with
any data pointer ("pointer to an object type or an incomplete type" in
ANSIspeak) without casting.  If you have to cast the return type from
malloc() to get it past an ANSI-conformant compiler, then you know that
there is a problem in your code.  If the original poster changes his
code to include <stdlib.h> instead of <malloc.h>, it will be portable to
any platform which has an ANSI-compliant compiler.  Your solution will
fail, for example, on the AS/400 and in some cases in large-model 16-bit
DOS or OS/2.

dave
Newsgroups: comp.os.os2.programmer
From: mahmad@acs.ucalgary.ca (Mohamed Ahmad)
Subject: 16 bit alignment of struct members in GCC 2.1
Date: Sat, 29 Aug 92 16:42:09 GMT
Organization: The University of Calgary, Alberta


	I have the file format for a DOS-based brain scanning
machine in the form of a C structure.  Being of DOS (and hence 16
bit) orgin, the struct members are 16-bit aligned.  I wish to
read some files of this format under OS/2 2.0.  Unfortunately,
when I compile the program using GCC 2.1, some variables
(especially floats) are 32-bit aligned and so the struct no
longer corresponds to the file format.  I have tried using GCC's
___attribute___(aligned((2))) statement to force 16-bit alignment
but have had no success.  Any ideas?  Thanks in advance for any help.

					Mohamed Ahmad
Newsgroups: comp.os.os2.programmer
From: shiva@well.sf.ca.us (Kenneth Porter)
Subject: tlink trivia
Summary: tlink can create 1.3 executables
Organization: Whole Earth 'Lectronic Link
Date: Tue, 1 Sep 1992 06:31:20 GMT

When Borland created programming tools for Windows, it added the "/T"
switch to tlink to specify the output file type.  You follow the 'T'
with 'd' or 'w' for DOS or Windows.  You follow the 'd' or 'w' with
'c' (COM), 'e' (EXE), or 'd' (DLL).  On a whim, I tried substituting
'o' after the 'T' and checked the result with EXEHDR and, lo and
behold, an OS/2 1.3 executable was produced!

Ken
Newsgroups: comp.os.os2.programmer,comp.os.os2.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.programmer.win32
From: Lucian_Dancanet@transarc.com
Newsgroups: comp.os.os2.programmer
Subject: IPMD questions
Date: 28 Aug 92 15:13:10 GMT
Article-I.D.: transarc.IebfA6z0Bwww1cuPUk
Organization: Carnegie Mellon, Pittsburgh, PA



1. Whenever I start IPMD I have to specify the directories for each source
   file. As I have several directories with very long names, this is becoming
   extremely annoying. Is there a way to avoid this, something like a
   configuration file (similar to .gdbinit, e.g.)?

2. After I run the program to completion (I have an "Access violation"), I'm
   told that the program is terminated, and IPMD closes all the windows,
   except the "Debug Session Controls" window. Is this normal? When I restart,
   of course, I have to type again those long directory names, etc.

3. I'd like to save into a file  the information from a debugger window (like,
   for instance, a portion of an assembly listing), but I couldn't figure
   out how to do it ("Mark" is not available). Is this possible?

Thanks for any help.

Lucian
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
From: evanc@uuisis.isis.org (Evan Champion)
Subject: Re: Does math coprocessor speed up GUI (here: OS/2 presentation mgr)
Organization: International Shared Information Service (Ottawa)
Date: Thu, 27 Aug 92 14:28:18 GMT

ADUNSMUI@TOROLAB6.VNET.IBM.COM (Al Dunsmuir) writes:

>   Whenever this question is asked of the OS/2 developers, the answer is that
> for optimal performance all PM operations use integer math.  Thus having a
> numeric coprocessor it will not speed up the base OS/2 presentation services.
> 
>   Having said that, having a math coprocessor (especially a tightly coupled
> one as implemented in the 486) can speed up OS/2 applications.  For example,
> IBM's X-Windows server (PM screen interface for TCP/IP) achieves __dramatic__
> performance gains when a math coprocessor is present.

Wouldn't FP math be faster on machines with math coprocessors than
integer math?

Evan
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Problem with WM_ACTIVATE.
Date: 1 Sep 92 22:58:46 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <lwjnw_.daveb@netcom.com> daveb@netcom.com (Dave Briccetti) writes:
>Alfred.Kayser@dnpap.et.tudelft.nl (Alfred Kayser) writes:
>: Help, I have a problem with a PM program. When I open a (WinCreateStdWindow)
>: standard window, but which is hidden, and I show it using
>: a WinShowWindow, PM sends me a WM_ACTIVATE message. So far so good,
>: I set the 'active' flag and returns FALSE. So far as is documented, but
>: PM crashes and gives a protection violation. Help I'm lost in PM!!!
>: 
>Perhaps you could run the program under a debugger and find out exactly
>where you are crashing.

Not really.  You'll have to remote-debug it.  You can't run a debugger
on the same machine as the PM code you're debugging.  It halts lots of
things. 

Better, you should insert fprintf() statements everywhere and log the
program's position to a file and find out what gets written just
before the crash.  Later, you can #ifdef them out, so you can always
set a define to re-compile your code in debug mode.  (I usually use an
#ifdef DEBUG for this)


-- 
   |)  David Charlap           "TELEPHONE, n.  An Invention of the devil which
  /|_  dic5340@hertz.njit.edu   abrogates some of the advantages of making a
 ((|,)                          disagreeable person keep his distance."
  ~|~                              --- Ambrose Bierce, The Devil's Dictionary
From: ameline@vnet.ibm.com (Ian Ameline)
Date: Wed, 26 Aug 92 19:30:32 EDT
Subject: Re: C Set/2 Problem with getch()
Newsgroups: comp.os.os2.programmer
Organization: C-Set/2 Development, IBM Canada Lab.
Disclaimer: This posting represents the poster's views, not those of IBM

In article <1992Aug26.222918.14442@pony.Ingres.COM>,
seg@Ingres.COM (scott e garfinkle) writes:
>Actually, I find it  just as convenient to use KbdCharIn  as getch().  They
>are both 16 bit calls, anyway.  Code fragment:

   Nope. the migration libraries are all compiled with C-Set/2, and are
32 bit. Now that particular function probably just calls the Kbd
function anyways.

Regards,
Ian.
From: francis@vnet.ibm.com (Tim Francis)
Date: Fri, 28 Aug 92 10:30:18 EDT
Subject: Part number for the ToolKit?
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 <1992Aug28.012608.104@uniwa.uwa.edu.au>,
gupw@uniwa.uwa.edu.au (Paul Wagland) writes:
>
>Hi all,
>Hope you can help me.
>
>I would like to order the IBM toolkit, and was wondering what the part
>number is?

From the announcement letter:

PART NO.  PRODUCT DESCRIPTION
--------  ------------------------
          IBM OS/2 Developer's Toolkit Version 2.0
10G3355   Program Package (3.5)
10G4335   Program Package (5.25)
10G4431   Additional Licences

          IBM OS/2 Developer's Workframe Version 2.0
10G2994   Program Package (3.5)
10G3292   Program Package (5.25)
10G3364   Additional Licences

          IBM OS/2 Developer's WorkBench Version 2.0
10G4333   Convenience Kit   (3.5)
10G4334   Convenience Kit  (5.25)

          IBM OS/2 C Set V1.0
10G2996   Program Package (3.5)
10G3293   Program Package (5.25)
10G3291   Additional Licences

          IBM OS/2 Developer's WorkSet/2 Version 2.0
10G2995   Convenience Kit   (3.5)
10G3363   Convenience Kit   (5.25)
10G3356   Documentation Only

Remember the WorkSet includes the Toolkit, C Set/2 and WorkFrame/2, and
currently has a promotional price of $295 ($395 in Canada).  The promotion
is currently only scheduled until Sept 5 (Aug 31 in Canada), so if you
were going to order it, now's the time.     -tim
Newsgroups: comp.os.os2.programmer
From: nigel@modcomp.uucp (Nigel Gamble)
Subject: Is filename truncation possible on FAT filesystems under OS/2?
Organization: MODCOMP, an AEG company
Date: Mon, 31 Aug 1992 18:56:33 GMT

Under DOS, if your compiler tries to access a file as a result of an

	#include <bsd_types.h>	/* 9 + 1 chars */

directive, and you have a file named bsd_type.h (8 + 1 chars) in your
include directory, everything works as you would expect: DOS trucates
`bsd_types.h' to 8 character (plus extension) and the file `bsd_type.h'
is opened.

However, under OS/2 this does not work.  Instead the compiler objects
that it can't find `bsd_types.h'.

Is there any was to force all file names to be truncated to 8 + 3
(like DOS does) when using a FAT filesystem?

(Yes, I'd like to install the compiler on an HPFS partition, but I'm
not going to do this until I have some way of backing up HPFS partitions
to tape.)
--
Nigel Gamble					nigel@modcomp.com
AA-5B N28491 (FXE)				uunet!modcomp!nigel
From: dmm@vnet.ibm.com (dave)
Date: Tue, 1 Sep 92 20:45:58 EDT
Newsgroups: comp.os.os2.programmer
Subject: Re: No getch() in 2.0???
Organization: IBM Canada Lab
News-Software: UReply 3.0
X-X-From: dmm@vnet.ibm.com (Dave Mooney)

In <86jn-rest-of-name-mangled-by-hostile-mainframe-software>
> Well, I finally got a C Set/2 program working that reads characters
> from the keyboard without echoing. The problem is that I could only do
> it by using the migration libraries. Is there NO getch() function in
> the standard C Set/2 libraries?

Not today.  Since Migration libraries was a bit of a foolish idea in the
first place, all the funtions in them will be moved into the standard
library in future versions.  You can feel comfortable using getch(), or
anything else you find in there.

dave

-------------------------------------------------------------------------
Dave Mooney                                              dmm@vnet.ibm.com
 C Set/2 Development, IBM Canada Lab, 844 Don Mills Rd, Toronto, Ontario
            "If you've got a blacklist, I want to be on it"
Newsgroups: comp.os.os2.programmer