HDTenEightyP/NetNews huggingface dataset:
From: andrewb@lynx.cs.washington.edu (Andrew Berg)
Newsgroups: comp.os.os2.programmer
Subject: Re: Button Press..HELP!!!!
Date: 28 Jul 92 03:59:52 GMT
Organization: Computer Science & Engineering Dept., Univ. of Washington, Seattle
X-Newsreader: Tin 1.1 PL3

In C/Set there is a macro that casts from &msg to a *_COMMANDMSG structure.
A version that works with GCC is as follows:

/* pmgnu.h - macros not found in the distribution */
typedef struct __COMMANDMSG {
	USHORT msg;	/* the WM_COMMAND msg */
	USHORT fill1;	/* args are 32 bit aligned */
	USHORT cmd;	/* the subcommand */
} _COMMANDMSG, *_pCOMMANDMSG;
#define COMMANDMSG( msg )  ((_pCOMMANDMSG) (msg))

typedef struct __CHARMSG {
	USHORT msg;	/* the WM_CHAR msg */
	USHORT fill1;	/* allingment */
	USHORT fs;	/* the modifier flags (is Vkey, isCTRL, etc... ) */
	USHORT fill2; 	/* never saw this */
	USHORT chr;	/* the keycode */
	USHORT vkey;	/* the virtual keycode */
} _CHARMSG, *_pCHARMSG;
#define CHARMSG( msg )  ((_pCHARMSG) (msg))

/* also you may find it usefull to define */
#define CALLBACK EXPENTRY

I got this code from 'urbas@RZ-Berlin.MPG.DE', so if you use it, you might
drop a note and thank him.  He did the hard work
From: pstevens@Metaphor.COM (Paul Stevens)
Newsgroups: comp.os.os2.programmer
Subject: IPMD, Say It Ain't So.
Date: 27 Jul 92 23:39:28 GMT
Reply-To: pstevens@Metaphor.COM (Paul Stevens)
Organization: m4

Is it really true that there is no way to set a breakpoint on a running
program?  For example, if I discover that I need another breakpoint while
the program is running how do I interrupt IPMD to set this breakpoint.
Some folks here say that this is just not possible.  If so, I view this
as a major failing of IPMD.  The same problem seems to exist for even
enabling a breakpoint previously disabled.  This seems so easy to
implement and so essential to use, how did the IPMD developers forget
it?

I've also noticed that sometimes the "step over" and "step return" 
functions seem broken; they have the effect of "run".  Other folks here
have also noticed this behavior.  Are there any bug fixes for this 
problem?

I'm sorry if this has all been hashed to death in this newsgroup,
but I'm just now subscribing to it.
+------------------------------------------------------------------------+

   Paul Stevens                        {apple|decwrl}!metaphor!pstevens
   Metaphor Computer Systems           pstevens@metaphor.com
   Mountain View, CA
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: How do you get out of TeX?
Date: 23 Jul 92 19:53:11 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <MATTES.92Jul22132124@azu.azu.informatik.uni-stuttgart.de> mattes@azu.azu.informatik.uni-stuttgart.de (Eberhard Mattes) writes:
>Bob cain writes:
>
>> If you misspell the name of a file to TeX (invoking in under any of its
>> numerous incarnations) you end up with a prompt demanding another input
>> file name.  Well it does say please but it doesn't seem to accept anything
>> else.  I can't find any way to quit short of killing the window.
>
>The emTeX documentation says Ctrl-Z.

In other words, the system EOF character.  On Unix, you type CTRL-D
for the same response.
-- 
   |)  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: DOUG@novell.com (Doug Smith)
Subject: Differences in EMX and GNU ports of G++
Summary: What are the differences in the two ports of g++?
Keywords: G++, EMX, GNU
Organization: Novell NPD
Distribution: all
Date: Tue, 28 Jul 1992 20:27:56 GMT

Can someone tell me what the differences are between the two ports of the 
GNU compilers for OS/2 2.0?  I'm not quite clear what they are.  Do both 
have (or will have very shortly) full OS/2 WorkPlace Shell libraries?  Are 
either of the compilers able to use other commercially available libraries 
designed for use with IBM's compiler (e.g. IBM's TCP/IP libraries)?

Thanks for any info.

Doug Smith
Novell NPD
jdsmith@novell.com
From: dens@flammulated.rice.edu (Dennis Allen Schmitz)
Newsgroups: comp.os.os2.programmer
Subject: Re: OS/2 Resources - Control Window Definition
Date: 31 Jul 92 04:08:03 GMT
Organization: Rice University, Houston, Texas

In article <1992Jul30.032541.19247@panix.com> os2man@panix.com (Larry Salomon Jr.) writes:

   >	problem : i want to allow a user to change the position of
   >		  controls on the screen.  in fact, i want to create
   >		  a dialog box editor-like application that will allow
   >		  a user to customize the interface.  instead of saving
   >		  the changes to a .RES file, i want to make the changes
   >		  directly to the .EXE.  under the macintosh environment,

   Good luck.  There is no API to do this and OS/2 locks the .EXE while the
   program is executing in any process space.  Sounds like you're gonna have
   to write it as a separate file.  :(

Wouldn't it be realatively easy to store the window size information in the Extended Attributes?

Later,
den
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: How do I print the GCC docs ?
Keywords: gcc, .texi
Date: 30 Jul 92 21:17:00 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Jul16.153203.20772@dde.dk> jwj@dde.dk (Jesper Wolf Jespersen) writes:
>I have used the OS/2 port of GCC 2.1 for a little while now and generally 
>like the product. Now I would like to know how I go about printing
>the documentation that came with it.
>The documentation files are all filled with text formatting codes and
>are pretty unreadable in that form. All files have the ending '.texi'
>what kind of text formatter handles them?
>
>How do I get hold of software to translate these files into something printable
>on say a canon laserprinter? I do have access to both OS/2 machines and Unix 
>machines but havent found anything that can handle these files (I am no wizz at
>text formatting :-)

Since you have access to a unix machine, do you have the tex system
installed on it?  TexInfo files (.texi) can be formatted into .dvi
files using the tex package and the texinfo include file (which is
ftp-able from most gnu sites if you don't have it already).  The dvi
file can be formatted into most printer formats.  There also exists a
program to convert dvi files into ASCII text (dvitty), although you
lose all formatting.

TexInfo files may also be turned into .info hypertext documents for
the Gnu-Emacs info system using the makeini program (also available
from Gnu sites) or using the texinfo-format-buffer command of
Gnu-Emacs.  Note that some emacs installations aren't up to the
current patch level for texinfo formatting.

I believe there also exists the documentation in text form at
ftp-os2.nmsu.edu.  Look for gcc21txt.zoo in the /pub/os2/2.0/gnu/gcc21
directory. 
-- 
   |)  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: sci240s@monu6.cc.monash.edu.au (Mr W.J. Ho)
Subject: Using MS-C (MSDOS) library for OS/2 ... possible?
Organization: Monash University, Melb., Australia.
Date: Tue, 28 Jul 1992 13:50:30 GMT

I have a question. I am quite stuck with Microsoft C (Version 6.00a)
because the libraries I need to use are all Microsoft C compatibles 
only. The question is:

Can I use Microsoft C (Version 6.00a) to write OS/2 programs (I understand
they will be 16-bit only) using the libraries (eg, neural nets library that
uses specialize co-processor board)?

Any experience or replies welcome.

-- 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Wey Jing Ho    Tel: 61-3-573-2567   E-mail : sci240s@monu6.cc.monash.edu.au<
>Physics Dept., Monash University ( Caulfield Campus ), Melbourne, AUSTRALIA<
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Newsgroups: comp.os.os2.programmer
From: rommel@Informatik.TU-Muenchen.DE (Kai-Uwe Rommel)
Subject: Re: EMX library bug.
Organization: Technische Universitaet Muenchen, Germany
Date: Thu, 23 Jul 1992 07:33:07 GMT

In article <1992Jul22.185306.10692@ampex.com> cjensen@ampex.com (Colin Jensen) writes:
>In article <ReiBoB5w164w@dvss.UUCP> dvss!jtroy@udel.edu (Jay Troy) writes:
>>I think I've discovered an EMX library bug.  The standard library function
>>strtok causes an access violation in every combination that I've tried.  The
>>following simple C program illustrates this problem:
>
>>    char *ch = "3.4 4.1";
>>    strcpy(temp, strtok(ch," "));
>
>I don't know anything about EMX, but your code is certainly problematic.
>A C compiler is free to store strings constants like "3.4 4.1" in 
>read-only memory [hence their name].  Since strtok will try to write 
>into that memory, an access violation should be expected.
>
>To be portable, you need to copy that string either into an automatic variable
>or copy it into some malloc'ed memory.
>
>Under UNIX, you can pass gcc the option -fwritable-strings to tell gcc you
>really want to be able to write into string constants.  Perhaps this would
>solve your problem with EMX.
>-- 
>Colin Jensen (cjensen@ampex.com)

Yes, -fwritable-strings solves this problem. Try it.

Kai Uwe Rommel

/* Kai Uwe Rommel --- rommel@informatik.tu-muenchen.de */

DOS ... is still a real mode only non-reentrant interrupt
handler, and always will be.                -Russell Williams

Newsgroups: comp.os.os2.programmer
From: ezeller@iiic.ethz.ch (Emil Johann Zeller)
Subject: Re: Problem with checkbox
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH)
Distribution: usa, local
Date: Wed, 29 Jul 1992 07:05:17 GMT

Oh, sorry, I forgot to inlude what`s the problem with
checkbox.c:
	I think this program should beep on WM_PAINT if the checkbox
	checked, but it won`t. Now what did I wrong?
	I use OS/2 2.0 and gcc2.1.

Thanks

	Emil, ezeller@iiic.ethz.ch
Newsgroups: comp.os.os2.programmer
From: jeffc@netcom.com (Jeff Cohen)
Subject: Re: Hard Disk Interrupts?
Date: Sun, 26 Jul 92 21:32:48 GMT
Organization: Hacker's Anonymous

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.
>    The hard disk adapter on my machine is SCSI.  It contains posts
>for a jumper, presently missing, to enable interrupts for operation
>complete.  Can anyone say whether or not OS2/2.0 is capable of using
>the hard disk interrupt?  Is there a mode whereby the OS allows non-
>disk activities to proceed while disk-I/O is outstanding and depends
>upon the interrupt to recover the disk-bound thread?  If so the
>benefits are obvious and I'd like to take advantage of them.
>
>Regards, rLs

OS/2 most certainly uses hard disk interrupts, but only if it has
a native device driver.  If your SCSI board doesn't have a native 
OS/2 driver, OS/2 must use the generic INT 13 BIOS interface which
does not use interrupts.  OS/2 ships with native drivers for Adaptec
and Future Domain SCSI (and IBM, of course).
-- 

==============================================================================
Jeff Cohen         | Standard disclaimer:  My views are my own and may or may
jeffc@netcom.com   |                       not represent the views of IBM.
==============================================================================
Newsgroups: comp.os.os2.programmer
From: jarman@ee.ualberta.ca (Andrew Jarman)
Subject: What's wrong with this?
Organization: University Of Alberta, Edmonton Canada
Date: Tue, 21 Jul 1992 05:16:03 GMT

I have finally got a chance to start porting some of our work utilities
to OS/2 using GCC 2.1  A lot of our programs are really simple command
line utilties used for manipulating data files.  Can someone tell
me what is wrong with this?  I compile and run it under gcc 2.1, no
errors in the compilation.  The system does not print any output until
I type in enough input first, or press ^Z, to end my input stream.

#include <stdio.h>
#include <stdlib.h>

main() {
	char buffer[100];

	printf("This is a test\n");
	scanf("%s", buffer);
	printf("Buffer = %s\n", buffer);
}

Is there an ioctl statement I need to use first? This is such a basic
program that I figure it MUST work.  Any ideas?
Thanks.

-- 
/***************************************************************************\
|  Andrew Jarman                 |   Computer Engineering                   |
|  jarman@bode.ee.ualberta.ca    |   University of Alberta, Canada          |
\***************************************************************************/
Newsgroups: comp.os.os2.programmer
From: bergstro@src.honeywell.com (Pete Bergstrom)
Subject: OS/2 REXX/Presentation Manager Interface?
To: comp.os.os2.programmer
Posted-Date: Mon, 27 Jul 92 10: 00:56 CDT
Organization: Honeywell Systems & Research Center
Date: Mon, 27 Jul 1992 15:00:56 GMT
Received-Date: Mon, 27 Jul 92 10: 00:58 CDT

From: dlb5404@tamsun.tamu.edu (Daryl Biberdorf)
>After digging around through the online docs for REXX under OS/2, it
>seems that there is some sort of interface to the Presentation Manager (PM).
>However, I can't find it documented explicitly, and I haven't the faintest
>idea of how to use the interface.
>
>So, my questions are: does such a REXX-PM interface exist?  And, if so,
>where can I get information on how to use it?


I'm not at my home machine now, but the Toolkit does have quite a
reference on using REXX to interface programs.  I'm working on a
fairly detailed description of the Toolkit that I will post to
.os2.programmer presently.  It's a woefully poorly described package with
an incredible amount of useful data.  (I just converted the .h files
to work with the gcc21 compiler, the complete 32 bit API is now
available to me!)

Pete
Newsgroups: comp.os.os2.programmer
From: dmm@vnet.ibm.com (dave)
Date: Mon, 27 Jul 92 10:22:57 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 <1992Jul24.182822.24148@hellgate.utah.edu> Brian Sturgill writes:
> I had assumed that with the beta tools, that they were slow because of debug
> code... Wrong... this compiler's a dog.

I can't comment on your comments about support, ordering, or NFS, but I
can comment on compiler stuff.  The problem with the compiler is not that
it's a dog, the problem is that it's a pig: it likes to have lots and
lots of memory available.  We're fixing that, though.  The first CSD
features a performance improvement of around 10%, and the next CSD will
have significant improvements in working-set size, which will lead to
better swapper behaviour.  Some of our preliminary tests show compile-
time improvements of around 25% over the first CSD on small machines.
We'll let you know when this is available.  In the mean time, you'll see
big improvements if you jack your machine up to 16M of RAM.  I know that
this is a poor way to fix the compiler's memory allocation problems, but
it *will* give you fast relief.

> Also in June... the projects mostly there... I turn on the optimizer...
> Gak!!! it screws up loop expression-extraction optimization.
> I loose a week trying to get around the problems... decide I'll just have
> to live without optimization... I don't call IBM!!! -- I'd lose another week.

How do you expect us to fix bugs if you don't tell us what they are?
Build a preprocessed version of your program with the failing code (ie,
compile with -P), and send the resulting .I file to cset2@vnet.ibm.com
along with a covering note telling us where to look for the problem and
we'll open up an APAR and get this fixed in an upcoming CSD.  And btw,
this goes for anyone else with a C Set/2 question, kudo, or complaint...
cset2@vnet.ibm.com is your 24-hour a day hotline to the C Set/2
developers, workframe@vnet.ibm.com for Workframe/2.

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: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: ObjectVision 2.0 for OS/2
Date: 27 Jul 92 20:24:41 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Jul26.070045.6393@weyrich.UUCP> tnet.com!weyrich!orville writes:
>Someone recently posted saying that Borland had released ObjectVision 2.0
>for OS/2 2.0 (but no BC++ yet).
>
>What can OV be used for? Will it work with IBM's CSET/2? Will it work
>with gnu gcc2.1? Does it provide the same functionality as Turbo Pascal
>6.0's TurboVision? Does it provide the same functionality that IBM's
>CUA Library does? What is it's street price?

ObjectVision is nothing like TurboVision.  It is not a libarary/object
set for use with another language.  it is a standalone development
environment.  It is mostly intended for rapid prototyping of
applications, but one could conceivably write an entire app with it.
I don't think you NEED any other compilers.

Not haviong seen IBM's CUA libarary, I don't know if it's similar.  

OV/2 will sell for a list price of $250, but there's an introductary
offer on right now, so you can direct-order it for $150.



-- 
   |)  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: it1@ra.msstate.edu (Tim Tsai)
Subject: Re: Hard Disk Interrupts?
Organization: Mississippi State University
Date: Sun, 26 Jul 1992 22:28:39 GMT

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.

  Chances are your SCSI adapter is holding up the ISA Bus too
long during a DMA transfer.  I'm using an Always IN-2000 with
the INT13 driver and I do not have any problems with high speed
transfers.  The IN-2000 uses programmable IO and does not use
DMA.  I tried a bus-mastering DMA controller before and I can't
successfully transfer a file at 19.2K even under DOS, let alone
OS/2.  I'm waiting for an OS/2 driver to come out before I pass
final judgement, but I'm not optimistic.
Newsgroups: comp.os.os2.programmer
From: ddesroch@oracle.uucp (David DesRoches)
Subject: Re: OUTLINE FONT METRICS
Organization: Oracle Corp., Redwood Shores CA
Date: Wed, 29 Jul 1992 04:31:05 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.

harris@garfield.catt.ncsu.edu (Michael Harris) writes:

>daveb@netcom.com (Dave Briccetti) writes:

>>ddesroch@oracle.uucp (David DesRoches) writes:
>>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?

>Alternatively, you could query *some* of the info via GpiQueryTextBox.
>______________________________________________________________________________
>     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)

Well, I must have been on drugs the first time through.  My testing was
not thorough.

Bottom line is, if you do:

GpiQueryFonts()
- select the outline font you want -
GpiCreateLogFont()
GpiSetCharSet()
* GpiSetCharBox() *
and finally
GpiQueryFontMetrics()

you *will* receive the scaled font metrics for the new character cell size.

I guess I was missing the SetCharBox() step before.  My thinking was that
I set lMaxBaselineExt and lAveCharWidth in the FATTRS before I called
GpiCreateLogFont(), so I was creating a logical font OF THE SIZE I WANTED.
Not so.  Looks like creating a logical font from an outline font ignores those
fields in FATTRS.  The outline font takes its size from the current 
character cell dimensions.

(Thanks to Scott from Adobe for pointing me in this direction!)

Dave

Newsgroups: comp.os.os2.programmer
From: cl45@cunixf.cc.columbia.edu (Ching-Tse Liu)
Subject: Re: Gnuplot. Was: Re: S3 Chipset Drivers. Still Looking
Reply-To: cl45@cunixf.cc.columbia.edu (Ching-Tse Liu)
Organization: Columbia University
Date: Wed, 22 Jul 1992 04:16:57 GMT

	I have ported GNUPLOT 3.2 to MSDOS for 386 using

the Zortech compiler. It's dpmi compliant and thus runs under

the OS/2 2.0. Since it's a 32-bit program, it will take a very large

data set limited only by the physical ram. It also supports vesa

svga. The only limitation of the dos extenter that comes with Zortech

is the lack of virtual memory support and the system call spawn( ) (

the shell-to-dos dosen't work .) It has been great to use the 386 gnuplot.



I am trying to port it to the OS/2 using the OS/2 1.3 version of the 

Zortech compiler, but I am having problems linking the object files.

If anyone has experience with the Zortech compiler in OS/2, please

help me.



Is anyone interested in the 386 gnuplot ? Where should I upload 

my port ?

    =======
    \ o o /
    |  /  |	Life is a beach !	**********************
     \_-_/				*  Clifton T. Liu    *
Newsgroups: comp.os.os2.programmer