HDTenEightyP/NetNews huggingface dataset:
From: os2man@panix.com (Larry Salomon Jr.)
Newsgroups: comp.os.os2.programmer
Subject: Thanks for the GNUBISON replies!
Date: 6 Nov 92 19:00:14 GMT
Organization: PANIX Public Access Unix, NYC

Thanks for all of the replies for GNUBISON.ZIP (how to unzip).  The UNZIP
looks *really* neat (definately somethin' for my utilities directory!)!!!
Kai Uwe Rommel (I hope I got your name correct) mentioned that I need 
GNUEMX to run Bison.  I've seen many posts previously about EMX (that I
now wish I had read), but I have no clue regarding what it is.  Could 
someone send me email with an answer to this?

Miny-tanks,
Q
-- 
"If you choose not to decide, you  | "A fool and his money are fun to go
 still have made a choice" - Rush  |  out with" - seen on a T-shirt
------------------------------------------------------------------------
Newsgroups: comp.os.os2.programmer
From: feustel@netcom.com (David Feustel)
Subject: Re: CSet/2 and port access.
Organization: DAFCO: OS/2 Software Support & Consulting
Date: Sun, 8 Nov 1992 15:41:29 GMT

Welcome to the club. Let us know what you finally find out.
-- 
Dave Feustel N9MYI <feustel@netcom.com>
 
Security Classification: *** TOP SECRET ***
Newsgroups: comp.os.os2.programmer
From: loekken@Xenon.Stanford.EDU (Jack Viktor Loekken)
Subject: Re: gcc (emx version) and long filenames.
Organization: Computer Science Department, Stanford University.
Date: Mon, 9 Nov 1992 03:11:07 GMT

In article <1dk1f8INN5dk@iskut.ucs.ubc.ca> ochealth@unixg.ubc.ca (ochealth) writes:
>In article <1992Nov8.045519.17076@CSD-NewsHost.Stanford.EDU> loekken@Xenon.Stanford.EDU (Jack Viktor Loekken) writes:
>:I am having trouble with gcc (emx version) and long filenames on
>:HPFS partition.
>:
>[ source example deleted ]
>
>:The program prints out : 
>:
>:	Unable to open <this.file.already.exists>
>:
>
>Nope. Sorry, you are imagining this :-) This does not happen.
>Are you using EMX version 0.8e (ie the latest?) I've also got the service
>pack installed, but I doubt if that would change anything.

I do have the service pack installed. And it really *does* happen :-).

>Maybe you have an old version of emx.dll or emxio.dll.

I have the dll's that came with emx 0.8e.:
	9-12-92   1:49p     37945          49  emx.dll
	9-12-92   1:49p      2830          49  emxio.dll
	9-13-92   5:42p     66971          49  emxlibc.dll
I assume these are the newest. And I do not have any old versions of these
on my disk.

>-- 
>______________________________________________________________________________
>jpm: ochealth@unixg.ubc.ca         
>                            Happily using OS/2 2.0 because MS Windows isNT ___
>                                                      Insert VapourFeature ^^^


Jack

Xref: sparky comp.os.os2.programmer:6229 comp.os.os2:425 comp.sys.ibm.pc.programmer:548
From: cherniac@bbn.com (Natasha Cherniack)
Newsgroups: comp.os.os2.programmer,comp.os.os2,comp.sys.ibm.pc.programmer
Subject: OS/2 compiler needed
Date: 5 Nov 92 22:26:30 GMT
Followup-To: comp.os.os2.programmer
Organization: BBN Systems and Technology, Inc.


A friend of mine is looking for a compiler that will support malloc'ing large
amounts of data (~4 meg).  Currently he is using Microsoft and that only allows
malloc'ing up to one segment.  Are there any OS/2 compilers around that can do
this?  Words of wisdom and encouragement needed!! :)

Please email to cherniac@bbn.com
Thanks
Natasha
From: bab@se39.wg2.waii.com (Brian Button)
Newsgroups: comp.os.os2.programmer
Subject: Possible bug in GCC/2 iostreams???
Date: 11 Nov 92 12:24:33 GMT
Organization: Western Geophysical Exploration Products

I seem to be having a problem reading in the contents of a file using
iostreams. When I use any multi-char read methods, I get the first
byte twice. For example :

{
    ifstream ifs( "test.data" );
    char buf[ 16 ];
    ifs.read( buf, 16 );
}

If the contents of test.data are "abcdefghijklmnop", I'll read
"aabcdefghijklmno".

If I change the reading code to

	ifs.rdbuf( )->sgetn( buf, 16 );

I get the same results.

However, if I change to

    for( i = 0; i < 16; i++ )
    {
        int ch = ifs.rdbuf( )->sgetc( );
    }

everything works fine for me.

Am I doing something wrong here or is this a bug in GCC/2?

thanks,

bab

--
|-----------------------|----------------------------------------------------|
| Brian Button          | email : button@wg2.waii.com                        |
| Design Engineer       |         71023.276@compuserve.com                   |
| Western Geophysical   | voice : (713)964-6221                              |
| 3600 Briarpark        |----------------------------------------------------|
| Houston, Texas  77042 |                  Opinions Be Mine!!                |
|-----------------------|----------------------------------------------------|
From: zhao@unixg.ubc.ca (Jiansheng Zhao)
Newsgroups: comp.os.os2.programmer
Subject: Help me to run gcc, please.
Date: 14 Nov 92 03:31:53 GMT
Organization: The University of British Columbia
NNTP-Posting-Host: unixg.ubc.ca

Hi, there,
I cann't run gcc2.2.2 under os/2 (HPFS). I followed the installation
instruction in install.doc (or readme). However, when I tried to complie
a simple program (e.g. sample1.c which comes with the gcc2.2.2 package from
hubs), I always get the following error message:
"
abnormal program termination.
SYS 1808
The process has stopped. The software diagnostic code (exception code)
is 0006.

I need to know (from someone who has installed gcc2.2.2) how to get gcc
running. 

Thanks.

Newbie in C programming

-- 
Jiansheng Zhao
Dept. Chem. Eng, Univ. of B. C., Canada. V6T 1Z4
zhao@unixg.ubc.ca
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Newsgroups: comp.os.os2.programmer
Subject: Re: IBM Developer's Workset/2 - who knows what's in it?
Keywords: info wanted - detailed if possible!
Date: 14 Nov 92 01:08:57 GMT
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago

In article <1992Nov13.131134.13201@bnr.ca> cheetham@bcarh774.bnr.ca (Rob Cheetham) writes:
>  Has anyone here got the IBM Developer's Workset/2 package
>(#10G2995), the one that's on special until April something-
>or-other? The price differene here in Canada is pretty steep, 
>so if this is a good package I'd like to get it while
>the deal's on (reg. $1095, now $445 - to my best remembrance,
>so put the flamethrowers down...).
>  Obviously it must contain the C Set/2 compiler, but exactly what 
>else is in it? Does it have the online API documentation and all that? 
>Has anyone used it, and what were their impressions?

Workset/2 contains C Set/2 (the compiler), the Toolkit (including
online API documentation and many utilities), and Workframe/2 (the
integrated development environment).  There's also a debugger in there
somewhere.

You might want to take a look at the product announcement letter(s),
available via anonymous ftp from ftp-os2.nmsu.edu, directory
/pub/os2/2.0/info.

-- 
Timothy F. Sipples      | Read the OS/2 FAQ List 2.0g, 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       | [Read the List, THEN post to ONE OS/2 newsgroup.]
From: lansche@torolab6.VNET.IBM.COM (Martin Lansche)
Date: Fri, 13 Nov 92 10:11:02 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: New to OS/2 programming ... need help setting up
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0

In <1992Nov12.120023.940@calmasd.prime.com> Ken Brucker writes:
>And while I'm here, what are some good books on PM programming?  I've already
>got the 4 red books, but they don't seem to have any details on the calls
>available for PM programming.

The Red books should contain the references for the APIs that you would
be interested in.  Look for functions starting with Win* (PM functions),
Gpi* (PM Graphics), and Dos* (OS/2 kernal).  The Red books should be
hardcopy versions of the online references that come with the OS/2 2.0
Toolkit.
  This is not the best place to start to learn however.  I am currently
teaching myself PM from texts.  I have looked at Charles Piezolds (sp?)
from Micros*ft Press, and found it ponderous. Next I looked at "OS/2
Presentation Manager Programming Primer" by Drore & Lafore, pub - Osborne
McGraw Hill.  While it was written for OS/2 1.2, the APIs haven't changed
much, and it covers the material very well.  It works from the ground up,
and you just continually modify two or three examples, learning more and
more with each modification.  There may be 2.0 stuff not covered in here
but I have found it to be a very good text to learn from.
  I have also purchased Stephen Knight's "Learning to Program OS/2 2.0
Presentation Manager by Example", Van Nostrand Reinhold pub.  A quick
glance and read of the introductory chapters left me with the impression
that the Drore and Lafore book was superior.  Knight's approach is to
start with a complete slider puzzle game (similar but more flexible than
the one that comes with OS/2), and dissect it, explaining as he goes.
He takes 50 pages to cover what the D&L book covers in 160+ with
paragraph descriptions with try to "teach" the basics, while the D&L
takes you through 20 running programs and explaining each variation in
detail.  I will use Knight's book as my second PM book, and to pick up
OS/2 2.0 new features not covered in the D&L book.  Add the Red Books
(I look at the online files from the Toolkit), and it all seems to fall
in place.
Cheers,
Martin Lansche
  ________________________________________________________________________
   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.
  ________________________________________________________________________
From: bab@se39.wg2.waii.com (Brian Button)
Newsgroups: comp.os.os2.programmer
Subject: Re: Possible bug in GCC/2 iostreams???
Date: 11 Nov 92 12:27:15 GMT
Organization: Western Geophysical Exploration Products
In-reply-to: bab@se39.wg2.waii.com's message of 11 Nov 92 12:24:33 GMT


->"Brian" == Brian Button <bab@se39.wg2.waii.com> writes:

for( i = 0; i < 16; i++ )
{
    int ch = ifs.rdbuf( )->sgetc( );
}

Whoops! Make that sbumpc(); :)

bab



--
|-----------------------|----------------------------------------------------|
| Brian Button          | email : button@wg2.waii.com                        |
| Design Engineer       |         71023.276@compuserve.com                   |
| Western Geophysical   | voice : (713)964-6221                              |
| 3600 Briarpark        |----------------------------------------------------|
| Houston, Texas  77042 |                  Opinions Be Mine!!                |
|-----------------------|----------------------------------------------------|
From: jmaynard@oac.hsc.uth.tmc.edu (Jay Maynard)
Newsgroups: comp.os.os2.programmer
Subject: Unsupported CDROM drives: Here's a grody idea...
Date: 12 Nov 1992 19:36:42 GMT
Organization: UT Health Science Center Houston


I was struck by an idea while writing the article I just posted on getting the
DAK $199 CDROM drive going to comp.os.os2.misc. It's a really grody hack, but
has the advantage of sidestepping completely the question of how to do
low-level hardware access to all these unsupported devices:

How about an OS/2 device driver that, instead of talking to the hardware
directly, communicates (presumably via one or more named pipes) to a program
running in a specific DOS session, which would receive the requests and
process them?

Is this even possible under OS/2? Just how badly am I violating the OS/2
architecture? I know performance would stink, but it'd at least get access to
these devices under OS/2 for those of us who can't/don't want to spend several
hundred dollars on a SCSI adapter and supported CDROM drive. Is it documented
anywhere just what CDFS.IFS expects of a device driver it's talking to?  
-- 
Jay Maynard, EMT-P, K5ZC, PP-ASEL | Never ascribe to malice that which can
jmaynard@oac.hsc.uth.tmc.edu      | adequately be explained by stupidity.
     We survived Jimmy Carter; we'll (probably) survive Bill Clinton.
From: shurr@cbnews.cb.att.com (larry.a.shurr)
Newsgroups: comp.os.os2.programmer
Subject: Re: nmake and $*, $< and $?
Date: 13 Nov 92 17:24:08 GMT
Organization: AT&T Bell Laboratories, Columbus, OH

In article <1992Nov11.111124.3646@donau.et.tudelft.nl> linstee@dutecaj.et.tudelft.nl (Erik van Linstee) writes:
>I am just wondering why nmake doesn't support $< and $?
>or does it? Mine can't seem to recognise them and gives
>me a warning U4006: special macro undefined.

Which is why I've been using DMAKE V3.8 :-).

Larry
-- 
Larry A. Shurr (las@cbnmva.att.com or att!cbnmva!las) speaking only for myself.
EOR (end-of-ramble)
From: Mat.Kramer@f115.n282.z1.tdkt.kksys.com (Mat Kramer)
Sender: FredGate@tdkt.kksys.com
Newsgroups: comp.os.os2.programmer
Subject: Converting RichTextFormat
Date: Thu, 12 Nov 1992 08:38:00 -0600

SF> Does anyone have an RTF to IPF converter...

There is a product called Universal Help from Softronics, Inc., 800-225-8590,
fax 719-548-1878, email 71670.653@compuserve.com, which supposedly
does the conversion.  I don't have the product, but have seen postings about
it on CompuServe.

Good luck!

.

 * KWQ/2 1.0C * 75746.2404@compuserve.com


 * Origin: (1:282/115)
Newsgroups: comp.os.os2.programmer
From: ernst@opal.cs.tu-berlin.de (Ernst Kloecker)
Subject: RPC client/server application in a mixed environment ?
Organization: Techn. University of Berlin, Germany
Date: Wed, 11 Nov 1992 16:44:41 GMT

Hi,

we are in the process of implementing a client-server application using
OS/2 1.3 at the moment, but we will move to OS/2 2.x soon. The server
is supposed to be running on a OS/2 machine with several OS/2, DOS/Windows
and Unix clients accessing the server functions via RPC.

Has anybody done something like that before and can recommend books/articles
on RPC programming in a mixed environment ? Is the mixed environment
idea feasible in the first place ?

What kind of RPC libraries are available for OS/2 1.3 and OS/2 2.0 ? On
which communication protocols is the RPC mechanism based ? TCP/IP ?

If it is TCP/IP, would it still be possible to connect the OS/2 server to
a Netware network which uses IPX/SPX as the underlying protocol ?


Thanks for any info, Ernst.
--

-----------------------------------------------------------------------------
Ernst Kloecker      phone: ++49-30-6181635      e-mail: ernst@cs.tu-berlin.de
-----------------------------------------------------------------------------
Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Re: Writing trivial device drivers - documentation? help?????
Date: Fri, 13 Nov 1992 13:49:48 GMT
Organization: PANIX Public Access Unix, NYC

In <1992Nov13.002029.1824@msc.cornell.edu> tommy@msc.cornell.edu (Mike Thompson) writes:

> <stuff deleted>
>
>I need help.  I've got the development kits for OS/2 1.2 and 2.0.  They include
>some minimal examples of device drivers, but no real documentation.  Can
>someone tell me where to get adequate documentation to write a trivial device
>driver (it will be really stupid).  Book suggestions?  Pay for more software
>from IBM?

>Second request: Does anyone have an example device driver (in masm) fully
>functional they would make available to me.  I need examples of DevHlp calls
>to get mapping of physical memory.  Any help most greatly appreciated.

I highly recommend Steve Mastrianni's book on device driver programming and
the accompanying DevHlp library (which you - unfortunately - have to purchase
separately).  Steve can be contacted via mcimail at 5099225@mcimail.com .

Cheers,
Q
-- 
"If you choose not to decide, you  | "A fool and his money are fun to go
 still have made a choice" - Rush  |  out with" - seen on a T-shirt
------------------------------------------------------------------------
From: d9mikael@dtek.chalmers.se (Mikael Wahlgren)
Newsgroups: comp.os.os2.programmer
Subject: JournalPlaybackHook
Date: 6 Nov 92 02:00:27 GMT
Organization: Chalmers University of Technology, Gothenburg Sweden

I have been trying to use the JournalPlaybackHook with OS/2 2.0 for
quite some days, but haven't had much success yet.   I am writing a
16-bit DLL for my system hook procedure, but I am a little unsure
about the parameters in this procedure and what they are used for.

My OS/2 1.3 programming reference says the hook procedure should be
declared as JournalPlaybackHook(hab, qmsg, skip) while the OS/2 2.0
programming reference says JournalPlaybackHook(hab, skip, qmsg)
(note the different order).  Which one is the correct one?

Could someone explain how to use the "skip" parameter?  I am
totally bewildered by this parameter, and don't understand how
to step forward in my "Journal".

If I from my main program issue a WinReleaseHook while the 
JournalPlaybackHook is serving a system hook call, is the 
hook call terminated directly, or am I only preventing any MORE|
hook calls to be performed?

If I want to insert characters (key-presses) into the system queue,
what is the correct method?  What is the different between a WM_CHAR
and a WM_VIOCHAR message?

I have a hook procedure that "almost" works.  I can send any characters
(including accelerated keys) to any application I want, but whenever I
send several keys fast, the receiving application (the one that should
finally receive the WM_CHAR messages) is terminated without any message
at all.

I would appriciate any help.  I think hooks are too briefly documented
in the programming references.  Does anyone know of any good litterature
covering this?

Mikael Wahlgren
Newsgroups: comp.os.os2.programmer
From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
Subject: Faulty memcmp in gcc 2.2.2/emx ?!
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Thu, 12 Nov 1992 10:40:03 GMT

I just found out that memcmp reverses the return value.
It returns -1 when 1 is supposed to return and vice versa.
Has anyone else noticed this, fixed it and is able to
tell me about it?
I could rebuild the memcmp code and replace it in the
library if someone could point me out how to go about, 
since I am rather new at gcc.

Erik


-- 
Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
----
   We are god, 'cause only we can create the idea of his existence
   in our holy brains...  (Yello)
From: joe2@vnet.ibm.com
Date: Thu, 12 Nov 92 12:46:31 FWT
Newsgroups: comp.os.os2.programmer
Subject: Re: OS/2 memory management (ARGH!)
Reply-To: <joe2@vnet.ibm.com>
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
            <1992Nov11.135504.7459@panix.com>

In <1992Nov11.135504.7459@panix.com> Larry Salomon Jr. writes:
>In <1b68f11e@p11.f9.n242.z2.fidonet.org> Roman_Grzondziel@freax.fido.de (Roman G
>rzondziel) writes:
><problem description deleted>
>
>This is probably a bug in the file dialog.  Can some IBMer forward this to
>Dave Bernath (DBERNATH at CARVM3)?  Thanks.
>
>


    Done.

    -Joel Armengaud
Xref: sparky comp.os.os2.programmer:6310 comp.os.os2.apps:8103
From: ksanthan@garnet.berkeley.edu (Kumaran Santhanam)
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps
Subject: Re: OS/2 CD and ATI Utlra ?'s
Date: 10 Nov 1992 16:56:44 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: garnet.berkeley.edu

Where can I get an ATI Graphics Ultra driver 1024x768x256 for OS/2 2.0?  Does it
allow me to run Windows seamless?  Please let me know.

Kumaran
ksanthan@garnet.berkeley.edu
From: tommy@msc.cornell.edu (Mike Thompson)
Newsgroups: comp.os.os2.programmer
Subject: Writing trivial device drivers - documentation? help?????
Date: 13 Nov 92 00:20:29 GMT
Organization: Cornell-Materials-Science-Center

Okay, I've finally learned that OS/2 is not quite the perfect OS for
lab environments.  Maybe I long for a bit of the control of DOS days.  Anyway,
I have to write my own device driver to access memory mapped controllers on
a digital to analog (No - of course the manufacturer has no intention of
creating DD in the forseeable future).

I need help.  I've got the development kits for OS/2 1.2 and 2.0.  They include
some minimal examples of device drivers, but no real documentation.  Can
someone tell me where to get adequate documentation to write a trivial device
driver (it will be really stupid).  Book suggestions?  Pay for more software
from IBM?

Second request: Does anyone have an example device driver (in masm) fully
functional they would make available to me.  I need examples of DevHlp calls
to get mapping of physical memory.  Any help most greatly appreciated.

------------------------
  ____ ___   ___    ___        Michael O. Thompson
   /  /  / / / /  / / / \ /    Materials Science & Engineering
  /  /__/ / / /  / / /  /      329 Bard Hall -- Cornell University
                               Ithaca, NY  14853
tommy@msc.cornell.edu          Ph: (607) 255-4714

OS/2:  For the few, the proud, the devoted!
Newsgroups: comp.os.os2.programmer
From: mking@borland.com (Mike King)
Subject: DosQueryProcAddr()
Originator: mking@genghis.borland.com
Organization: Borland International
Date: Wed, 11 Nov 1992 01:29:59 GMT

Hello out there, 
   I am having some trouble with DosQueryProcAddr(), and I was wondering if anyone had a piece of code they could share. I am tring to get the address of a 16-bit function in a 16-bit DLL. The DosLoadModule() seems to work fine, and the call to DosQueryProcAddr() returns a 0 as well. When I try to execute the function I get an error.
   Here is one of the variations I have tried:
static USHORT usVar;
USHORT __far16 __pascal (*func)(USHORT *);
   /* some stuff deleted */
if (!DosLoadModule(NULL, 0, "mod", &hDllHandle))
{
   if (!DosQueryProcAddr(hDllHandle, (ULONG)0, "FUNCTION",
      (PFN *)&func))
   {
      if (!func(&usVar))   <== It dies here.
	 
  I tried the examples in the C/SET but they didn't help.

Thanks for any pointers.
From: gt4719b@prism.gatech.EDU (Dave Frascone)
Newsgroups: comp.os.os2.programmer
Subject: C compilers..
Date: 5 Nov 92 17:51:56 GMT
Organization: Georgia Institute of Technology



I have just started using OS/2.  What is the best 32bit C compiler for
OS/2?

I have MSC 5.1, MSC 7.0, Borland C++ 3.1, and am getting GCC today.

I have noticed that MSC 5.1 has OS/2 compatibility, but MSC 7.00 does 
not.  What compiler do most people use?


Thanks,


Dave
-- 
gt4719b@prism.gatech.edu

Newsgroups: comp.os.os2.programmer
From: giguere@csg.uwaterloo.ca (Eric Giguere)
Subject: Re: Static variables in DLL's == shared memory ???
Organization: Computer Systems Group, University of Waterloo
Date: Wed, 11 Nov 1992 19:15:09 GMT

In article <1992Nov11.164359.2195@cs.tu-berlin.de> ernst@opal.cs.tu-berlin.de (Ernst Kloecker) writes:
>If I load a DLL containing static variables at runtime and the same DLL
>is loaded by another process, is the static data shared between the two
>processes ? (Hopefully not ;-)

Maybe.  When you link the DLL, you specify in the DEF file for the DLL
whether or not you want the data segment to be shared by all processes
using the DLL or that each process has its own copy.  The default is
shared.  You use a statement like

	  DATA MULTIPLE READWRITE LOADONCALL NONSHARED

to give each process a copy.

-- 
 Eric Giguere                                    giguere@csg.UWaterloo.CA
          So is Windows NT short for "Windows, NOT?"  
Newsgroups: comp.os.os2.programmer