HDTenEightyP/NetNews huggingface dataset:
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: Docs for 16-bit calls are wrong.
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Date: Fri, 22 Jan 1993 23:25:16 GMT

In article <22JAN199316214660@lims02.lerc.nasa.gov> smbrush@lims02.lerc.nasa.gov (Andy Brush @Sverdrup) writes:
>Along the same topic, I have found several errors in the programming guide 
>and API reference sections of the "Technical Library", for which I paid 
>$299.  I wish IBM would provide the required update to this set in the form 
>of a (very inexpensive) CD, containing both INF and printable versions of 
>the manuals.
>By "printable", I mean "capable of printing manual sections, including 
>indexes, exactly as they appear in the latest paper text furnished by IBM". 
>Clearly, the VIEW system's very limited print support will not do the trick
>.
>This seems like a very reasonable request, to me.  I am also passing this 
>request to IBM's DAP, by paper mail (I don't use Compu$erve), since there 
>is no address for reporting errors given in the printed manuals.

Good idea.

Note that the Guide to Interface Design and Advanced Interface Design
Reference books have comment forms in the back.  You can probably
photocopy these, cross out the information at the top (about the
manual title and publication number), replace it with the information
for the manual you are commenting on, include your comments, then send
the form in.

-- 
Timothy F. Sipples      | Read the OS/2 FAQ List 2.0i, available from
sip1@ellis.uchicago.edu | 128.123.35.151, anonymous ftp, in /pub/os2/all/info
Dept. of Econ., Univ.   | /faq, or from LISTSERV@BLEKUL11.BITNET (send "HELP")
of Chicago, 60637       | [Read the List, THEN post to ONE OS/2 newsgroup.]
From: ljensen@netcom.com (Colin Jensen)
Newsgroups: comp.os.os2.programmer
Subject: Re: Why I will choose Borland
Date: 23 Jan 93 19:29:29 GMT
Organization: Netcom - Online Communication Services (408 241-9760 guest)

In article <727547182.AA07615@tdkt.kksys.com> Scott.Jibben@f115.n282.z1.tdkt.kksys.com (Scott Jibben) writes:
>  >>The most common example is disabling the
>  >>parameter-not-used warning on vectored procedures...
>
>DM>And, fwiw, you can shut up those messages by casting the parameter to
>  >void:
>
>Isn't it possible to turn off those warnings via a #pragma or something
>like this:
>
>void foo( int )  // note: I removed the variable name.
>{
>  printf( "I like C.\n" );
>  return
>}

You program should really say
    printf("I like C++.\n");
since your method of shutting up warnings is only legal in C++, and is
completly illegal in ANSI-C.

The most portable way to shut up the not-used warnings in ANSI-C
is the cast to void trick which works for all of the compilers I have
ever used.

-- 
Colin Jensen
ljensen@netcom.netcom.com	cjensen@ampex.com
From: tpo@dde.dk (Thomas peter Sonne Olesen)
Newsgroups: comp.os.os2.programmer
Subject: Programming OS/2 and PM <--> DOS and WINDOWS
Date: 22 Jan 93 09:49:25 GMT
Organization: Dansk Data Elektronik A/S

I have done a lot of C-programming. Mostly UNIX, but allso DOS and
WINDOWS. 

Now I have now started to drop DOS and go for OS/2.
I have got hold on emx/gcc but I need some references to 
the OS/2 and PM  API. Emx/gcc contain alot of docs for the standard
C routines, but I have seen nothing about the PM API. 

Any good books about theese subjects ?
Any kind of electronical API documentation availably on ftp ?

Anything will help.

Thomas
E-mail: tpo@dde.dk
-- 
|      |   |       |********************************************************
|    __| __| __    | Thomas P.S. Olesen 
|   /  |/  |/__>   | Dansk Data Elektronik A/S  -   Kernel development group
|   \__/\__/\__    | Email: tpo@dde.dk 
Newsgroups: comp.os.os2.programmer
From: rofische@iiic.ethz.ch (Roman Fischer)
Subject: Problem: Nasty Bitmaps
Originator: rofische@a13
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH)
Date: Thu, 21 Jan 1993 08:32:11 GMT

Hi PM-Programmers,

we are currently writting a game running under PM. The basic idea consists of
two players simutaneiously fighting against a set of evil monsters. So we need
lots (~20) of small bitmaps that move around the screen (window).
The bitmaps were created with IconEdit and are loaded with GpiLoadBitmap. Since
we need 4 versions of every monster (looking to the left, right, up and down),
we need to "turn" the bitmaps. Because we don't want to change 4 bitmaps if
we decide to change the look of a ghost, we decided to turn them "by software"
at program-startup. So far no problem.

So we load the bitmaps and put them into a presentation space (associated to a
appropriate dev.context). Still no problems, they look just great!

But now, when reading them into a buffer to perform the turning-act (using
GpiQueryBitmapBits), we noticed a strange behaviour:

The original size of the bitmaps is 20x20 pixels. When loading, we resize them
to 36x36 pixels. Now, when reading the data into the buffer, the x-dimension
is 40 !!!!

This means: a. GpiQueryBitmapInfo returns a cx value of 36 (as expected).
               But a short look at the data received from GpiQueryBitmapBits
               shows, that every scan-line consists of 40 pixels (20 bytes).
               
            b. You cannot use cx to calculate the offset of a pixel.
               To calculate the correct offset, you need to know the number
               of bytes per scan-line.

            c. If you don't know the original size of the bitmap, you cannot
               tell the correct way to address a pixel within that bitmap !!

Now:
a. Did we miss an important part in any doc ? 
b. Number of bytes per scan-line, any idea?


Please post any responses, comments or ideas here or send email to
mhof@iiic.ethz.ch or rofische@.iiic.ethz.ch.

Regards              Roman
-- 
----------------------------------------------
INTERNET: rofische@iiic.ethz.ch
----------------------------------------------
From: lansche@torolab6.VNET.IBM.COM (Martin Lansche)
Date: Tue, 26 Jan 93 08:53:06 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: Linker bombout on Nov C++ beta.
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0

In <1993Jan26.095812.25676@umr.edu> Charles Kincy writes:
>OK, this has probably been asked zillions of times before,
>but I can't find the answer anywhere, so I will have to ask it
>again.
>
>When linking a program that uses the iostream library,
>I get the following error:
>
>C:\IBMC\LIB\dd34sbs.lib(H:\OS2\OLDFORM.C):
>Error L2025:  WS__FR7istream : symbol defined more than once.
>
>Here are my options:
>Compiler:  -c -Oi -Fd+ -I.
>Linker:    /NOE
>
>Help!  It's frustrating to be able to compile beautifully without
>being able to link!  :)

Charles,
  It probably has been asked/answered a zillion times, but lets take a shot
at it.  The Iostream libraries are not shipped on the PDK CD ROM for licensing
reasons (i.e. not everyone who orders the PDK needs it). If you need to use
the USL Libraries (Iostream, Complex Numbers, Task Library - I think that is
the list), you must call IBM and order them.  You should have received a
cardboard diskette image with the CD with information on who to call so that
you will be sent the USL libraries.  If you no longer have the cardboard image
send me email and I will dig up the needed information for you.


Cheers,
Martin Lansche, IBM PRGS Toronto Lab, Canada
  ________________________________________________________________________
   Ilu Iluvatar en kare eldain a firimoin ar antarota mannar valion :
   numessier.  Toi aina, mana, meldielto -- enga morion : talantie.
   ----------------------------------------------------------------------
   The father made the world for elves and mortals and he gave it into
   the hands of the Lords in the West.  They are blessed, holy and loved,
   except the black one.  He has fallen.  (J.R.R. Tolkien).
  ________________________________________________________________________
From: z_kupkams@ccsvax.sfasu.edu
Newsgroups: comp.os.os2.programmer
Subject: Re: (PC Week says Borland C++ shipping in Feb?)
Date: 25 Jan 93 23:40:51 CST
Organization: Stephen F. Austin State University

In article <!#p3ga=@rpi.edu>, yeel@aix.rpi.edu (Crimson Avenger) writes:
> I saw the latest PC Week magazine and it claims that Borland C++
> will be shipping in Feb?  Nothing on price or features.
> 
> Well, one thing is will it produce DOS/Windows and OS/2 programs? or
> just OS/2 programs?  That means that you would need about 2-30meg 
> development system on-line if you want to switch between DOS/Windows 
> and OS/2?  
> 
	I asked Borland at Comdex,and they said the first release will only
do 32bit OS/2 development. I didn't press for when/if it will do DOS/WIN.

Michael Kupka
From: hatton@socrates.ucsf.edu (Tom Hatton)
Newsgroups: comp.os.os2.programmer
Subject: Re: Developers - Read this!
Date: 21 Jan 93 01:45:02 GMT
Organization: UCSF Computer Graphics Lab

sal8@po.cwru.edu (Steve Luzynski) writes:

>I've been kicking an idea around for a bit here and wanted to get some 
>reactions. 

Yow!! :-)

[...]
>So, what I propose is this: an electronic magazine for all levels of 
>developers, with topic levels ranging from 'How do I create a window?' to 'I 
>need help writing a driver for my video card.'

>I was thinking about doing monthly releases in straight ascii format, 
>distributed to CI$, hobbes, and uuencoded on comp.binaries.os2. It would 
>have to be a labor of love, with the incentives for writing articles being: 
>retaining your own copyright and reprint rights; seeing your name in lights; 
>and helping OS/2 move into a market dominating position.

Sounds great, if a little difficult to organize. Maybe you can talk to IBM
about this and see if there is some kind of support or co-ordination
possible through them? I suppose that might raise problems as well as solve
some, but there may be some help to be had.
-- 
Tom Hatton
hatton@cgl.ucsf.edu
(415)-476-8693
From: lhoang@orion.oac.uci.edu (Long Hoang)
Subject: COMMON SEAMLESS WINOS2 from PM app - WPShell and SOM
Newsgroups: comp.os.os2.programmer
Organization: University of California, Irvine
Date: 27 Jan 93 08:46:14 GMT


I have a few question regarding COMMON SEAMLESS WINOS2 session, started from
a PM application.

    1. I tried WinStartApp()
          a. Under OS/2 2.1 and compiled with Toolkt 2.1:
                     PROGDETAILS ProgDetails;
                     Progdetails.progt.progc = PROG_31_STDSEAMLESSCOMMON;

                 WinStartApp() only worked if a COMMON SEAMLESS WINOS2 already
                     started running other Windows application. ??????

          b. Under OS/2 2.0 and compiled with Toolkt 2.0:
                  Toolkit 2.0 does not have PROG_31_STDSEAMLESSCOMMON setting
                     for program type. How do I go about to achieve this?
                     If I could get the application to run in SEAMLESS mode,
                     I would be happy. However, WORK PLACE SHELL can do 
                     COMMON SEAMLESS WINOS2 for VGA, and for SVGA if you have
                     the patch. I am also interested in more info about
                     how to launch a non-OS2 app using a combination of
                     one or more of the followings:
                     <cmd.exe, winos2.com, pszEnvironment, and pszStartUpdir>


    2. Created a WPProgram object on the desktop and let the Work Place Shell
          launch the application.

          HOBJECT *clockHObject;
          clockHObject = WinCreateObject("WPProgram", 
                                       "Title", 
                                       "EXENAME=CLOCK.EXE;PROGTYPE=WINDOWEDWIN",
                                       "<WP_DESKTOP>",
                                       CO_REPLACEIFEXISTS);

          compiled with Toolkt 2.1, object successfully created under OS/2 2.1
          and OS/2 2.0 (that is if I click on the icon, CLOCK would be running
          under COMMON SEAMLESS WINOS2).

          My question in this situation is how do I start (OPEN_RUNNING) this
          object from my application.

          _wpOpen(WOBject *somSelf) is the only call I found so far.

          If I have to get into SOM and WPShell Classes and Objects programming,
             what do I really need?
            a. A new subclass of class "WPProgram"?
            b. What methods do you think a should overide?
                    - Which constructor?
                         * I tried WPProgramNew() but failed.
                              Do I need to CopyObject or CreateFromTemplate
                                      instead?
                    - Other methods?
                         * I probably want to access certain info such as class
                                  object pointer.
      ===============
      Summary: How to launch a COMMON SEAMLESS WINOS2 application from a PM
          program?  

      Thanks a zillion. Long Hoang
==============================================================================
==============================================================================
From: john.navas@uttsbbs.uucp (John Navas)
Newsgroups: comp.os.os2.programmer
Subject: RE: BORLAND C++: WHAT A D
Date: 24 Jan 93 09:36:00 GMT
Article-I.D.: uttsbbs.4085.18.uupcb
Reply-To: john.navas@uttsbbs.uucp (John Navas)
Distribution: world
Organization: The Transfer Station BBS, Danville, CA - 510-837-4610/837-5591

slumos@unlv.edu (Steve Lumos) writes:

 JN> Frankly, I can't imagine that BRIEF needs more than 2
 JN> programmers, as long as they are talented.

 > Then it sure seems strange that they had 6, doesn't it?

Not so strange -- lots of companies do a poor job of management.  :-(
Regardless, I certainly have a very tough time figuring out what *6*
programmers were doing, given the glacial pace of upgrades to BRIEF
over the last several years and the fact that it was originally
written by 2 programmers.  ;-)

 > I have to admit, I really don't enjoy hearing about programmers
 > being laid off by anyone...

Layoffs are never pleasant, which is why so many companies have a hard
time facing reality.  Better layoffs, however, than a complete
collapse.

 > And anyway, that was just one example what I heard was that they
 > laid off several thousand. Doesn't sound right when "understaffed
 > is an understatement", don't you think?

I can understand the need for downsizing given Borland's poor
financial performance over the last few years.

Regardless, I have *never* seen an engineering group that didn't think
it was "understaffed", no matter how many people it had.  ;-)

Best regards,
John
                                                                                  
----
+------------------------------------------------------------------------+
| The Transfer Station BBS (510) 837-4610 & 837-5591 (V.32bis both lines)|
| Danville, California, USA. 400+ MB Files & FREE public Internet Access |
+------------------------------------------------------------------------+
From: dmm@vnet.ibm.com (Dave Mooney)
Date: Sun, 24 Jan 93 18:02:15 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: Floating point underflow
Organization: IBM Canada Lab
News-Software: UReply 3.0

In <1430.1034.uupcb@idcbbs.com> Claudio Fahey writes:
> I'm trying to write a program with the IBM C Set/2.  Every
> once in a while, the program just terminates when I perform
> a specific action.  IPMD ( the debugger ) tells me that it
> gets a floating point underflow on a line such as this:
>     LONG rc; float Temp;
>         rc = Temp * NUMCOLORS/MAXTEMP;
>         When I trace into it, Temp is around 1e-40 and NUMCOLORS/MAXTEMP is
>         around 0.93.  Why is it giving me this error?  Why doesn't it just
>         set rc to 0?  How can I avoid this problem?  Thanks.

Underflow trapping is set on by default.  To turn it off, add the
following line to your program:

  _control87( EM_UNDERFLOW, EM_UNDERFLOW );

dave

-------------------------------------------------------------------------
Dave Mooney                                              dmm@vnet.ibm.com
 C Set/2 Development, IBM Canada Lab, 844 Don Mills Rd, Toronto, Ontario
          "Now we can talk to cheese anywhere in the world!!!"
Newsgroups: comp.os.os2.programmer
From: alen@crash.cts.com (Alen Shapiro)
Subject: IBM OS/2 TCP-IP uses DOS (low) memory? HELP ME PLEASE!!
Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
Date: 23 Jan 93 16:41:20 GMT
Summary: I need telnet under OS/2 and need to run DOS progs larger than 360k?
Keywords: TCP-IP DOS OS/2 memory

I'm in a bind...

I have OS/2 v1.33 (can't use 2.0 due to lack of suitable device drivers)
I'm developing an application that runs on a LAN (IBM Adaptor card) under OS/2
and talks with another application on DOS (can't put the DOS app. on
OS/2 due to lack of device drivers!!)

The OS/2 side needs to open a telnet session with a remote host. I have
IBMs TCP-IP (latest release = 2.1.1 (or thereabouts)).

The problem is that IBMs TCP-IP uses DOS memory for its 2 drivers IFNET
and INET. Each driver uses 100k and another 140k seems to be unavailable
to DOS (even with a fairly cut-down CONFIG.SYS). With 340k out of 640k
unavailable to DOS, I can't run my 360k DOS application.

QUESTIONS:
1) Why is 140k out of 640k unavailable to DOS with even a minimal
   CONFIG.SYS (i.e. no TCP-IP or LAN drivers)? ... Can this be changed?
   (RMSIZE is = 640 in CONFIG.SYS)
2) Can the TCP-IP drivers be persuaded to load high and thus be unavailable
   to DOS (and not use its memory) (I only need telnet from OS/2)?
3) Are there any TCP-IP packages (commercial or not) that either take a
   small chunk of DOS memory or none at all?
4) Are there utilities that will show me which drivers are using how much
   memory?

Please help me...I'm in a maze of twisty passages all alike!!

--alen
Please email to
	alen@crash.cts.com
I'll summarize for the net.
Newsgroups: comp.os.os2.programmer
From: johnw@wixer.cactus.org (john winthrop)
Subject: Why OS/2 doesn't support VGA modes in windows
Organization: Real/Time Communications
Date: Tue, 26 Jan 1993 04:05:48 GMT

There are two main reasons that os/2 doesn't support VGA (and SVGA)
modes in a window...

first, (s)vga modes  take up a lot of memory (up to 1 meg generally,
newer cards use even more memory).... To support virtualized vga modes
would mean that os/2 would have to have at least that much memory
available FOR EACH WINDOW! This would eat up resources faster than
godzilla could trample Tokyo.

Second, most vga modes use bit planes.  For those not familiar with bit
planes, they are simply a mechanism for accessing more than one byte of
video memory at a time, by compromising on whether you want to access
one pixel color on the screen, or access a group of pixels quickly.

One write to a bit plane could update several bytes of video memory,
which would recquire os/2 to modify those bytes in its own bufffer.  The
result would be the speed of the original apple ][...  Much of the
success of vga is due to the fact that it is so quick to do pixel writes
and copies.

Other bitplane modes are supported in OS/2 (ie EGA), because of a
"trick" the designers used to support them... The designers took some
left over memory at the end of your video cards buffer and uses it to
virtualize writes to the screen... notice, however, that this is seems
to be enabled only with the "scaled image" option, and it is VERY
slow...

As I have said over and over, it seems that the biggest flaws in OS/2
are really the flaws of the PC architecture, which was not designed as a
virtual machine or meant to be used for mult-user,multi-process
environments.

---------------------------------------------------------------------------
OS/2: Mainframe power for todays desktop

-- 
John Winthrop                    | "The only solution is:
johnw@wixer.cactus.org           |  cd /
cactus.org!wixer!johnw           |  rm -rf ."
=================================================================
From: francis@vnet.ibm.com (Tim Francis)
Date: Mon, 25 Jan 93 09:56:59 EST
Subject: Rexx question
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 <1993Jan24.181958.6740@athena.mit.edu>,
jawetzel@athena.mit.edu (The Rottweiler) writes:
>
>I'm doing a little Rexx programming and came upon the following:
>
>--------------------------------------
>/* */
>
>line = "prpipgphptp"
>
>do while((n = pos("p", line)) \= 0)
> line = overlay(" ", line, n)
>end
>
>say line
>
>line = "prpipgphptp"
>
>n = pos("p", line)
>do while(n \= 0)
> line = overlay(" ", line, n)
> n = pos("p", line)
>end
>
>say line
>
>-------------------------------
>
>The output when this program is run is the following:
>
>prpipgphptp
> r i g h t
>
>My question is simple - is this a bug or a limitation of the
>Rexx programming language?  Or is it that I'm doing something
>wrong?
>
>						Jake

The problem is that REXX doesn't support assignment within conditional
expressions.  This can be seen fairly easily by running your program
with TRACE ?I  (I = show intermediate values)

  *-*   Do While ( ( n = pos('p', line) ) <> 0 );  My Comments
  >L>       "N"                                    n = 'N'
  >L>       "p"
  >V>       "prpipgphptp"
  >F>       "1"                                    pos('p',line) = 1
  >O>       "0"                                    (N = 1) = 0
  >L>       "0"
  >O>       "0"                                    (0 <> 0) = 0
  >>>       "0"

The key is the part (N=1), which is evaluated as a condition, whose
result is either 0 (FALSE) or 1 (TRUE).   -tim
Organization: Penn State University
Date: Thu, 21 Jan 1993 02:36:08 EST
From: <CXC19$@psuvm.psu.edu>
Newsgroups: comp.os.os2.programmer
Subject: Can a REXX prog recognize redirection?

Is there a way for a REXX program to recognize when stdin
is being redirected from a file or pipe instead of being
read from the keyboard?

Carl Cotner
cxc19$@psuvm.psu.edu
Newsgroups: comp.os.os2.programmer
Subject: re: How do you create a new Program Object on the WPS (with REXX)?
From: paulg@a1.resmel.bhp.com.au (Paul Gallagher)
Date: 25 Jan 93 09:10:45 +1000

In article <1993Jan22.050018.14048@netcom.com> jhesse@netcom.com (John Hesse) writes:
>The objective is to have the user execute an "install" CMD or EXE file
>that creates a Program Object for the user.

You may have seen the Paradox 4.0 install script, which uses
SysCreateObject to make a WPS object

Hope they don't mind me posting a fragment of the script by:
/* Rob Gordon  Borland International 6/8/92  */

title = "Paradox 4.0"
classname = 'WPProgram'
location = '<WP_DESKTOP>'
setup = 'PROGTYPE=WINDOWEDVDM;EXENAME='pdoxpath'paradox.exe;
  STARTUPDIR='pdoxpath';SET DPMI_DOS_API=ENABLED;
  SET DPMI_MEMORY_LIMIT=4;ICONFILE 'pdoxpath'pdoxos2.ico;'

BldObj:
call charout , 'Building : 'title
result = SysCreateObject(classname, title, location, setup)

Newsgroups: comp.os.os2.programmer