HDTenEightyP/NetNews huggingface dataset:
From: dmm@vnet.ibm.com (dave)
Date: Thu, 30 Jul 92 11:56:37 EDT
Newsgroups: comp.os.os2.programmer
Subject: Re: Can someone at IBM please explain why developers should develop for OS/2?
Organization: IBM Canada Lab
News-Software: UReply 3.0
X-X-From: dmm@vnet.ibm.com (Dave Mooney)

In <1992Jul28.115501.2221@odi.com>  Benson I. Margulies writes:

> [Comments about difficulties getting bugs reported]

You're not the first person who has complained about the difficulty with
reporting bugs, and that's the reason that we installed the cset2 and
workframe ids on Internet: to make it easier to get in touch with us
directly.  We are working with the support people to help understand why
these problems arise and what we can do to make them go away.  We are
concerned about providing timely and accurate support.  So if you do have
problems, please email the details to the cset2 id (cset2@vnet.ibm.com)
and we'll look into them.

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"
From: dmm@vnet.ibm.com (dave)
Date: Mon, 27 Jul 92 10:53:09 EDT
Newsgroups: comp.os.os2.programmer
Subject: Re: fopen(f,"r") vs fopen(f,"rb") what's the diff?
Organization: IBM Canada Lab
News-Software: UReply 3.0
X-X-From: dmm@vnet.ibm.com (Dave Mooney)

            <1992Jul25.175848.29166@unixg.ubc.ca>

In <1992Jul25.175848.29166@unixg.ubc.ca> ochealth writes:
> A number of UNIX programs I have ported to OS/2 using emx or gcc
> choke on binary files, unless I modify them.
>
> for example:
> f = fopen(name,"r") must be changed to f=fopen(name,"rb")
> etc.
>
> I was wondering just what happens when you don't open as binary.
> Will it return EOF when it sees ^Z or what?

Opening a file in text mode on OS/2 will cause CR/LF (\r\n) to be turned
into a single LF (\n) character, and will cause the EOF flag to be set
when reading a ^Z (\x1a).

> This is sort of troubling to me, since EMX is desing to make porting UNIX easier
>
> Was fopen changed to make it more compatible with OS/2 or what. From what I've
> read "r" and "rb" are handled the same in UNIX.

The original Unix utilities should *really* have opened files in binary
mode in the first place.  The way that Unix works causes binary mode to
be identical to text mode, so the utilities' authors got away with
reading binary as text on Unix systems -- the two modes are the same, so
it doesn't matter which one you use.  On OS/2, there *is* a difference,
so you have to be more careful.  If the utilities treat files as binary,
then by all means, change the code so that the fopen() call uses "rb".

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
From: tdukes@eng.auburn.edu (Todd J Dukes)
Subject: link386
Organization: Auburn University Engineering
Date: Wed, 29 Jul 1992 03:15:37 GMT

 I have been writting some code for OS/2 using the GNU C++ compiler.
 I have yet to find where the linker that comes with OS/2, link386, is
 documented.
 I have ordered the redbooks but have only recieve vol 1. Is the linker
 documented in vol 4.

 Any info would be appreciated.

 Todd
From: joker@diku.dk (Morten Christian Holmgreen)
Newsgroups: comp.os.os2.programmer
Subject: Price of Workset/2 ???
Date: 25 Jul 92 20:29:00 GMT
Organization: Department of Computer Science, U of Copenhagen

Can someone please tell me whether the $295 offer is a normal price or
an upgrade price for WorkSet/2 ?

Does anybody know if I in Europe can order this from IBM, USA - that is
WILL IBM sell it to me or are they competing with IBM Denmark. The reason
for all this is the extreme price of $1250 for WS/2 in Denmark. Even with
my student discount I'll have to pay about $800 for it!!!

Thanks...

Christian
-- 
M. Christian Holmgreen / joker@diku.dk / mochmch@uts.uni-c.dk
student, University of Copenhagen, Dept. of Computer Science
"Human errors can only be avoided if one can avoid the use of humans"
Newsgroups: comp.os.os2.programmer
From: pathak@mitre.org (Heeren Pathak)
Subject: Re: Win NT Dev, Conf. Report'
Followup-To: comp.os.os2.programmer
Organization: Mitre Corporation
Date: Fri, 24 Jul 1992 14:23:48 GMT

In article <62666@cup.portal.com>, ts@cup.portal.com (Tim W Smith) wrote:
> Yes, but this large number is a small number compared to the number of people
> Microsoft can get.  Microsoft is *HUGE*.  Every company working on Windows
> software is a potential alpha and/or beta site for them.  Heck, every
> company working on DOS software is one, too.  With the low price of the
> pre-release, they could easily end up with 10,000 or more programmers
> testing NT. 
> 

However, the alpha/beta testing is going to be for < 6 months.  IMHO, this
is not enough time to find/fix the bugs AND make sure the fixes don't
introduce new bugs.  Also, vendors will be running few apps on the kernel
at a time.  The real problems with the kernel will come out when multiple
applications start interacting together.  You won't see this happening
until NT goes into production.

> This should let them get kernel stability (which was what this was originally
> about).  Sure, there will be bugs in the first NT release, but I would expect
> them to be relatively minor, rather than things that can crash the kernel.

I will still stick with my statement that the stability of the kernel
should be an area of concern.  While they may catch some bugs, I would be
very surprised if they still have a fair number of then lurking around.  An
operating system kernel is probably the most difficult piece of software to
write and the only way to get it stable is to give it time to mature, just
like fine wines! ;-) 

-------------------------------------------------------------------------
Heeren Pathak                      | Television is a device that permits
pathak@mitre.org                   | people who haven't anything to do to
Mitre Corporation                  | watch people who can't do anything.
(617) 271-7465                     |	               	-- Fred Allen
-------------------------------------------------------------------------
Disclaimer: Mine not Mitre's.
Newsgroups: comp.os.os2.programmer
From: kncarp@nicsn1.monsanto.com (Kevin N. Carpenter)
Subject: Trap 000e caused by control program
Organization: Monsanto Company
X-Newsreader: Tin 1.1 PL3
Date: Wed, 29 Jul 1992 19:36:44 GMT

I have recently finished writing a control program for a series of
electrical devices that are controlled by a relay box being controlled
by a second parallel port adapter in my machine.  Since this program
has been running (5 days now), my OS/2 system has died with a Trap 000E
three times.  The program runs 24 hours a day, the trap is unpredictable.

There are two semi-interesting aspects to this program: 1) it does a pile
of trigonometric function calls (like 500+ a minute; calls limited to
sin, cos, asin, acos, tan, & atan) on a 33/386 without a math
co-processor.  2) Every minute it output a single control byte to the
parallel port via a Turbo-C BIOSPRINT call.

The second parallel port is jumpered to run WITHOUT interrupts.  After
reading the INFTXT.ZIP file pulled from watson, I got the impression 
this definetly is not standard practice under OS/2.  Apparently OS/2
demands that LPT1 by configured as IRQ 7 and LPT2 be IRQ 5.  IRQ 5 is
my bus mouse port...  However, the program does appear to work for 
extended periods of time.  It never seems to die when anybody is around
the machine.  To complicate the IRQ world (but to be fair and give you
all the whole picture), I have a Sound Blaster also configured for IRQ 7.
I've been running under the assumption that I would just not be able to
use the SB and Printer at the same time.

Anyhow, does anybody have any suggestion as too what might be going on?
I've theorized that the OS/2 Math Co-Processor simulation routines might
have a subtle bug.  The other possiblity is wrapped up in the IRQ issues.
Does anybody know how I can disable the Co-Processor simulation and just
let Turbo-C's routines do the work?  Oh, yeah, this program is running
in a DOS box.
--
Kevin Carpenter       Internet:  kncarp@nicsn1.monsanto.com
Monsanto Company 
St. Louis, Missouri, U.S.A.
Opinions expressed are those of the author, not the company he works for.
Newsgroups: comp.os.os2.programmer
From: ddesroch@oracle.uucp (David DesRoches)
Subject: OUTLINE FONT METRICS
Organization: Oracle Corp., Redwood Shores CA
Date: Fri, 24 Jul 1992 14:54:08 GMT
X-Disclaimer: This message was written by an unauthenticated user
              at Oracle Corporation.  The opinions expressed are those
              of the user and not necessarily those of Oracle.

OK, so I've chosen this really cool OUTLINE font that I want to scale to say,
32 points.  I compute the necessary character cell dimensions, call
GpiSetCharBox() and GpiSetCharSet() to select my new logical font.

QUESTION: How do I get the metrics for this font AT THE SELECTED POINT SIZE?
Calling GpiQueryFontMetrics() at this point returns the same metrics structure
I got back from my initial font query, with metrics designed around a 12 point
font or so.

My only current idea is to compute the ratio of logical.lMaxBaselineExt to
physical(base).lMaxBaselineExt and multiply the metrics by this ratio to
scale them (ascent, descent, maxwidth) to the point size I'm using.  This
seems bogus and prone to round-off error.

Am I missing something?

Thanks.

Dave DesRoches
ddesroch@oracle.com

Newsgroups: comp.os.os2.programmer
From: marten@feki.toppoint.de (Marten Feldtmann)
Newsgroups: comp.os.os2.programmer
Subject: Re: Q: Using Smalltalk/V-PM and IBM C Set/2
Distribution: world
Date: Tue, 28 Jul 92 07:12:16 GMT
Organization: Private Site

dmm@vnet.ibm.com writes in article <19920727.075255.593@almaden.ibm.com>:

> In <712014481snx@feki.toppoint.de> Marten Feldtmann writes:
> > I've some problems using IBM C Set/2 and Smalltalk-V/PM together:
> >   Code from 'C'
> > short _Far16 _Pascal TESTROUTINE( recvr)
> > struct object * _Far16 recvr;
> > {   return recvr->header.ObjectSize;
> > }
> 
> That  _Far16 recvr  should probably be  _Seg16 recvr .  And just for
> good measure, try writing your prototype as ANSI-style, rather than K&R-
> style:
> 
>   short _Far16 _Pascal TESTROUTINE( struct object * _Seg16 recvr ) { }
> 

 Yes, that's it and the Smalltalk code should look like:

 <api: 'TESTROUTINE' self short >
                     ^^^^

 MF


--
Marten Feldtmann                         E-Mail: marten@tpki.toppoint.de
2300 Kiel 14,    Kieler Str. 29,   Tel.: 0431-731916,   FAX: 0431-737677

Newsgroups: comp.os.os2.programmer
From: rpack@javelin.sim.es.com (Rick Pack)
Subject: WorkFrame/2 debug kernel crashes
Summary: The debug kernal in WorkFrame/2 crashes
Keywords: os/2 programmer debug
Reply-To: rpack@javelin.sim.es.com
Organization: Evans & Sutherland Computer Corp., Salt Lake City, Utah
Date: Wed, 22 Jul 1992 20:59:01 GMT

I just installed the WorkFrame/2 development software on my system.  Everything
seems to work just fine, with one exception.  After installing the debug kernel
and re-booting, the system crashes after just a few seconds.  (I was worried
I wouldn't be able to swap back to the normal kernel before it crashed.)

The crash completely locks up the mouse and ctl-alt-del doesn't work.  After
removing the debug kernel, all is fine again.

My system is a 33 mhz 486 with 16 megs of ram and an ESDI drive.

Thanks for any help.

-- 
Rick Pack   -WC7W- 
Evans & Sutherland Computer Corp.
Salt Lake City, Utah
(801) 582-5847
Newsgroups: comp.os.os2.programmer
From: gerry@pizzabox.dialogic.com (Gerry Lachac)
Subject: Re: Why aren't PDD's 32-bit?
Organization: Dialogic Corporation
Date: Wed, 22 Jul 92 14:43:31 GMT

In article <62520@cup.portal.com> ts@cup.portal.com (Tim W Smith) writes:
>
>I assume that some future release of OS/2 will allow 32-bit PDD's.
>Has IBM said when that will be?


I had asked IBM at a recent OS/2 conference when 32-bit PDD's would be
available.  No definite date as of yet.
From: fly@ccwf.cc.utexas.edu (Neil)
Newsgroups: comp.os.os2.programmer
Subject: listbox problem.
Date: 21 Jul 92 13:02:35 GMT
Reply-To: fly@ccwf.cc.utexas.edu (Neil)
Organization: The University of Texas at Austin, Austin TX
 I am having trouble pulling all of the selected items from a multiple selection listbox.
Originator: fly@thumper.cc.utexas.edu

the following code for some reason only pulls the first selected item from the listbox,and 
I cannot figure out why it does not do all of them...

Any suggestions are appreciated.
 Thank you.

Here is the code:

void Move()
{	int selNum;
	int index;
	char text[256]; 
	PSZ selection, 
		newp,
		oldp;
	char newst[256];
	char oldst[256];

	text[0]=NULL;
	newst[0]=NULL;
	oldst[0]=NULL;
	selection = (PSZ) text;

	selNum = SHORT1FROMMR( WinSendMsg(hwndList,
				LM_QUERYSELECTION,
				MPFROMSHORT( LIT_FIRST ),
				NULL ));

	while  ( selNum != LIT_NONE)
	{	WinSendMsg(hwndList,
			LM_QUERYITEMTEXT,
			MPFROM2SHORT( selNum,sizeof(text)),
			MPFROMP( selection ));	
	 	strcat( newst, p2);
		if (newst[strlen(newst) -1] != '\\' )
			strcat( newst, "\\" );
		strcat( newst, selection);
		strcpy( oldst,  p1);
		if (oldst[strlen(oldst) -1] != '\\' )
			strcat( oldst, "\\" );
		strcat( oldst,  selection);
		newp = (PSZ) newst;
		oldp = (PSZ) oldst;
		DosMove(oldp, newp, 0L);
		selNum=SHORT1FROMMR(WinSendMsg(hwndList,
                                            LM_QUERYSELECTION,
                                            MPFROMSHORT(selNum),
                                            0L));
	};
};
From: jshelby@ccwf.cc.utexas.edu (Jerold A. Shelby)
Newsgroups: comp.os.os2.programmer
Subject: Re: B008 Transputer Card Device Driver ????
Date: 30 Jul 92 14:13:57 GMT
Organization: The University of Texas at Austin
In-reply-to: st1cfl@zodiac.dsto.oz.au's message of 27 Jul 92 05:27:39 GMT


 There is a device driver for os/2 1.21.  The package I received is a ~2 year
old beta. I have been unable to get it to work under os/2 2.0. The package
consisted of the iserver and device driver.  None of the tool loaders were
included.

Jerry Shelby
UT Austin
jshelby@ccwf.cc.utexas.edu
From: apas611@chpc.utexas.edu (David Boles)
Newsgroups: comp.os.os2.programmer
Subject: Re: C2 Security
Date: 24 Jul 92 20:14:26 GMT
Organization: The University of Texas System - CHPC

In article <terryk.711987309@cc.gatech.edu> terryk@terminus.gatech.edu (Terry Kane) writes:
>
>Orange book ratings used in general computing are overkill.
>Basically, I think that non-defense users are looking at two or three
>categories: unsecure and generally secure.  The protection that's
>desired is protection against malicious or ignorant attacks on the
>integrity of the system.  ACLs on the file system and device drivers
>provide this, and ACLs are provided at the C2 level.
>
>Hence - I want C2 from my operating system.  I'll provide physical
>security, and if anybody wants to steal my data by monitoring
>electromagnetic emissions - Hey, more power to 'em.

Sorry to disappoint, but C2 does not requires ACL's for devices.  That
is a B1 feature.  C2 is the _minimal_ level of security that provides
even a reasonable level of security in the face of an attack.  

Nevertheless, your point about orange book ratings typically being
overkill is correct.  Even something as "wimpy" as C2 can be extremely
limiting in a shared computing environment.  Unfortunately, Msoft is
setting up NT as being a replacement for server-type OS's at large
sites.  As a result, I guess they felt that they would have to make
some noise about security issues to sound like they knew what they
were doing.  However, they started saying C2 before they apparently
knew what was involved, then backpedaled on it saying that the government
(NCSC) was moving too slowly.  Given that the pre-beta SDK just shipped
doesn't even include the filesystem, we can all tell who didn't have
their act together.

It seems that security in the orange book sense doesn't make much sense
for most folks however.  It focuses on things like loss or alteration
of information.  While these things are certainly important, for most
non-military related systems, attacks (malicious or inadvertant) that
result in denial of service are just as important.

Cheers,

David Boles
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: how to give program the focus?
Date: 30 Jul 92 21:28:08 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <9207292038.AA20166@data.src.honeywell.com> bergstro@src.honeywell.com (Pete Bergstrom) writes:
>
>This may be a relatively easy answer, but I want to capture mouse button
>clicks on my window.  I've done this by processing WM_BUTTON1DOWN and
>I do get the coordinates I want.
>
>But, when I do this, the title bar for my window loses the focus
>(grays out).  When this happens, I can't use ALT-F, etc key
>combinations to navigate the menus until I explicitly click on the
>title bar (or menu bar) again.
>
>So, how do I make sure that the window retains the focus?

Could you post the code fragment?

Anyhow, I've two ideas.

1) Is the message handler associated with the window or with the
   frame?  I think message handlers should be associated with the
   frame. 

2) At the end of your handler, are you calling WinDefWindowProc()?
   This is especially important, or you won't get any default handling
   for the other messages.



-- 
   |)  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: terryk@terminus.gatech.edu (Terry Kane)
Subject: Re: C2 Security
Organization: Georgia Tech College of Computing
Date: Fri, 24 Jul 1992 14:15:09 GMT

rodgers@engcon.marshall.ltv.com (KMRODGERS) writes:

>All of this talk about NT's level of security misses a very important point:
>The OS itself has no security rating.  ONLY hardware/software combinations
>are security rated.  It makes no sense to talk about an OS having a C2 or
>whatever rating.  A computer _system_ is rated -- not an OS.

Geez.  What whingeing!

Orange book ratings used in general computing are overkill.
Basically, I think that non-defense users are looking at two or three
categories: unsecure and generally secure.  The protection that's
desired is protection against malicious or ignorant attacks on the
integrity of the system.  ACLs on the file system and device drivers
provide this, and ACLs are provided at the C2 level.

Hence - I want C2 from my operating system.  I'll provide physical
security, and if anybody wants to steal my data by monitoring
electromagnetic emissions - Hey, more power to 'em.
-------------------------------------------------------------------
Terry Kane (terryk@cc.gatech.edu)
-------------------------------------------------------------------
I am a .sig file virus. Copy me into your signature file please.
Newsgroups: comp.os.os2.programmer
From: tamu@uxh.cso.uiuc.edu (Todd Henderson)
Subject: Watcom Fortran, anyone have it?
Organization: University of Illinois at Urbana
Date: Tue, 28 Jul 1992 12:06:27 GMT

I have just gotten some info about Watcom Fortran and was interested in 
hearing from someone who actually has it.  

The biggest concern is documentation.  In the info I have it list:

Windows Programming Guide
Dos        "          "
Video User's Guide
Linker User's Guide
Language Reference
Graphics Library Reference
Online Help

Nowhere does it mention OS/2 Programming Guide.  It does talk about OS/2
programming, i.e. it can be used for that, but does not indicate what kind
of information is provided.

I'm mainly getting it for the purpose of faster 32-bit codes.  I like the
idea of being able to run some simple Euler codes and grid generation at
home for debugging and such.(CFD)  But, I would also like to play around with 
the OS/2 programming for PM or WPS.(my terminology for OS/2 is all screwed up
right now)

Does anyone have a small sample of code that they've done where they open
up a window when you click on the icon, and in the window are some menu options
like 'open', 'print', etc. that they could email me.  I don't care about
any full length code, just an example of how it would be done if I decide
to buy Watcom Fortran.(or sample code that comes with the compiler would be
o.k. if it is not infringing on copyrights or anything, it would help sell one
of their compilers in all likely hood.)

Also, what kind of speed up could I expect going from MS's fortran to Watcom's?


Thanks for any insight.

Todd

tamu@uxh.cso.uiuc.edu

Newsgroups: comp.os.os2.programmer
From: lau@hydra.rose.brandeis.edu ()
Subject: online/other documentatons for gcc and emx compiler..HELP
Organization: Brandeis University
Date: Tue, 21 Jul 1992 22:10:11 GMT

Hi programmers,

	I'm new to os/2 c/c++ compilers.  I have some problem
locating the appropriate documentations for either gcc2.0 and the
emx c/c++ compilers.  For example, I have trouble using the
system() routine in gcc.

	I would appreciate any help to locate complete documentations
that could/should be printed and TexInfo type of online-help.
(I'd need more help to set up TexInfo/Info files, though).

	I'm using gcc2.0 but is strongly inclined to try emx.
So pointer to both are welcomed.   Thanks in advance.

-Frankie
lau@hydra.rose.brandeis.edu 
Newsgroups: comp.os.os2.programmer
From: brooke@cco.caltech.edu (Brooke Paul Anderson)
Subject: Re: Trouble linking libgpp.a under emx
Keywords: emx, c++
Organization: California Institute of Technology, Pasadena
Date: Tue, 21 Jul 1992 13:10:00 GMT


Oops.  In my previous article with the same subject, I should have
said that when I type "gcc -o hello.exe hello.cc -lgpp" things work
fine (not "gcc -o hello hello.cc -lpgg" -- you do need the .exe extension).
From: johns@mcs213c.cs.umr.edu (John Stone)
Newsgroups: comp.os.os2.programmer
Subject: Re: Hard Disk Interrupts?
Date: 26 Jul 92 22:45:55 GMT
Organization: University of Missouri - Rolla

In article <1992Jul26.150420.3389@rock.concert.net> rls@.wedge.nt.com (Robert L. Smith) writes:
>
>    I've been using OS2/2.0 for a month or so, on a '386DX with two
>hard drives, and get the impression that OS2 does nothing else --
>i.e., suspends multitasking -- while a hard disk operation is in
>progress.  If true, the reason may be that OS2 must poll the hard
>drive adapter to detect completion.  One piece of evidence for this
>conclusion (among others) is that a simple disk-to-disk copy operation
>in one partition disrupts a 9600-baud com transfer controlled by
>another.

   I don't know anything about your specific setup, but one of my
friends has an adaptec 1740 Bus master eisa (with OS/2 drivers) scsi 
controller, and we have run disk/cpu benchmarks simultaneously to 
see how badly the disk access slows the other process, and both 
tasks complete in about 1.3 times that time as they would alone 
(as opposed to 2.0 times the time..)

BUT, I do know that you should take PRIORITY_DISK_IO and set it to NO 
in your config.sys, otherwise it doesn't matter what disk controller you 
have.....

Try changing your config.sys, and see how that works for you.

Later,
         John Stone
         johns@cs.umr.edu
Newsgroups: comp.os.os2.programmer