HDTenEightyP/NetNews huggingface dataset:
From: hmkirchh@cip.informatik.uni-erlangen.de (Hans-Joachim Kirchhoff)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
Subject: Re: PDK CDROM RAQ (Recently asked Questions)
Date: Mon, 14 Dec 1992 17:34:02 GMT
Organization: CSD., University of Erlangen
NNTP-Posting-Host: faui01d.informatik.uni-erlangen.de

sangercd@nextnet.csus.edu (Carl D. Sanger) writes:

>In addition to the November PDK, IBM also has what the person at 800-3IBM-OS2
>called the AT&T developers kit.  It cost $25(U.S.).  She also told me that
>it included the C/C++ compiler and development tools.  Beyond that she
>didn't know much.  I went ahead and ordered it though.  I was told that it would
>be here within a week.  Does anyone know what I bought?

You bought the AT&T standard C++ librarys, namely the c-streams, complex and
some other (tasking I think) stuff, that is not included with the BETA C++
(but will be in the final release) compiler. IBM choose this approach (ordering
these lib's seperately), since they would have to pay royalties with every
BETA CD they delivered. Obviously they would have to raise the price of the
CD or give us all a x-mas present worth $25 :-)

IBM said, you will get $25 off the final price of the C++ compiler, if you
bought the AT&T stuff now to use with the BETA.

Any more questions??

-Hajo

>				Thanks,
>				Carl S.

>-- 
>Carl Sanger				|| sangercd@csus.edu
>California State University, Sacramento
---
--------------------------------------------------------------------------
Hans-Jochen Kirchhoff | hmkirchh@cip.informatik.uni-erlangen.de
> No signature today  | CompuServe 100024,712
From: checker@acf5.NYU.EDU (checker)
Newsgroups: comp.os.os2.programmer
Subject: Re: AT&T enhancements for the DAP CD-ROM disk for $10. Worth it?
Date: 15 Dec 92 05:58:06 GMT
Organization: New York University

lansche@torolab6.VNET.IBM.COM (Martin Lansche) writes about iostreams: 

>  If you are doing stdio-type of programming, then (1) [streams] is
> also useful. If you are doing PM programming, it is not.

Actually, strstreams are very useful even if you never use stdio. 
Temporary formatting buffers are a breeze:

char aBuffer[100];
ostrstream Out(aBuffer,100);

Out<<"This is a double: "<<1.34<<endl<<"An int: "<<234<<ends;

They are ever so much easier to use than sprintf and safer; it's
typesafe and it won't overflow the array.  If you don't construct it
with a buffer it dynamically allocates one for you and grows it as
necessary.  Don't forget the ends at the end or you won't have a null
terminated buffer.

Chris
From: ameline@vnet.ibm.com (Ian Ameline)
Date: Mon, 14 Dec 92 13:57:59 EST
Subject: Where is getch()?!??
Newsgroups: comp.os.os2.programmer
Organization: C-Set/2 Development, IBM Canada Lab.
Disclaimer: This posting represents the poster's views, not those of IBM

In article <1992Dec11.034713.14594@lugb.latrobe.edu.au>,
cscks@luxury.latrobe.edu.au (Kamal Shaker.) writes:
>
>I'm using C set/2 and whenever I use getch() to read a character
>( from a full screen OS/2 session ) the link gives me unresolved external,
>I included conio.h and stdio.h. It is in the neader files, but not
>in the .des files in the lib directory.... I really need to read
>one character at a time with extended keyboard support.
>Is there a way to fix this?? Or the the characters another way?!?
>
>Thanks is advance ( and for the answers to the other questions.. )
>

   Make sure you have the migration libraries installed, and use /Sm.
That should make it work.

Regards,
Ian.
>--
>------------------------------------------------------------------------------
>Kamal Shaker,        | cscks@luxury.latrobe.edu.au or shaker@latcs1.lat.oz.au
>Student Vax Cluster, | %SYSTEM-F-EXQUOTA, Alcohol quota exceeded,
>La Trobe Uni,        | stomach dumped.
>------------------------------------------------------------------------------
>There's enough water on earth to drown the human population 87.6 million times
>
  Oh Oh -- Better ban water. You can't use that old argument -- Water
doesn't drown people -- people drown people. :-)
Newsgroups: comp.os.os2.programmer
From: caliaro@avalon.physik.unizh.ch (Aurelio Caliaro)
Subject: DDE2OS.ZIP
Organization: University of Zurich, Department of Computer Science
X-Newsreader: Tin 1.1 PL4
Date: Sat, 12 Dec 1992 13:16:24 GMT

The sample programs written by MacFaden@IBM do not compile without changes
on EMX-GCC. In fact, there are 2 things that must be changed: First:
replace the // comment notation with /* */.
Second: remove the itoa((int)CF_TEXT, szBuf, 10) in server.c, and insert into
the following line "1" (without "") instead of szBuf.
I renamed the new .c-files as .emx.c

Compiling works as following:

gcc -g -c client.emx.c 
gcc -g -o client.prov client.emx.o -los2 -Zmt
rc -r -i \emx\include client.rc
emxbind -bpq -rclient.res /emx/bin/emxl client.prov

gcc -g -c server.emx.c
emxomf server.emx.o
gcc -g -Zomf server.emx.obj server.def -o server.exe -los2

The complete package (including the exe files) can be gotten as uudecoded
mail. If you are interested in it, mail me to
   caliaro@avalon.physik.unizh.ch
or post the request into this group.




             Aurelio Caliaro
Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Re: OS/2 libraries thread-safe ?
Date: Thu, 17 Dec 1992 18:31:35 GMT
Organization: PANIX Public Access Unix, NYC

In <1992Dec17.094108.12612@eua.ericsson.se> etxabju@eua.ericsson.se (Anders Bjurman) writes:

>In article 26031@cs.tu-berlin.de, ernst@opal.cs.tu-berlin.de (Ernst Kloecker) writes:
>>Hi,
>>
>>what precautions do I have to take when calling C-library functions from
>>different threads in one process ?

>There are (at least) two versions of the library - one "normal" and one thread safe.
>In MSC you invoke the thread safe library with -MT.

In C Set/2, you use the -Gm+ switch.

>>What happens to static variables like 'errno' ?

>No problem. errno is redefined with the preprocessor to a thread-safe function:
>#define errno thread_safe_errno_function() or something like that.

Same with C Set/2.

>>Can I safely call '...printf()' from different threads ?

>Not quite sure, but I think so. printf/sprintf etc uses (in MSC) a static result
>array. This array is guarded with semaphores. However, there can be a small risk
>that the output from several threads are mixed with each other (but only one
>of them calls printf() of course).

Yes, you can safely call any runtime function from separate threads, as long
as you link with the proper library (or let the compiler generate the "default
library object records" so that the linker knows).

>>Or are the only safe functions the OS-functions in 'bsedos.h' ?

>Sorry.

All of the OS/2 API are thread safe; it would be stupid for them not to be
since this is, after all, a multi-threading OS.

>>Or are even those functions not completely thread-safe ?
>>
>Not absolutly sure how they are implemented, but functions like strtok(),
>localtime(), gmtime() etc seems a bit dangerous - I guard them with a semaphore
>when I use them.

I think he was referring to the system API.  Again, both the C Set/2 and
system API are thread-safe.

Cheers,
Q
-- 
"If you choose not to decide, you  | "My other body is in the shop" - seen
 still have made a choice" - Rush  |  on a T-shirt
------------------------------------------------------------------------
Newsgroups: comp.os.os2.programmer
From: sdrumm@mcs213j.cs.umr.edu (Scott Drumm)
Subject: Borland C/C++ for OS/2  
Date: Mon, 14 Dec 1992 22:10:38 GMT
Distribution: usa
Organization: University of Missouri - Rolla
Keywords: Borland  

So what's the latest news on BC++ for OS/2 v2.0...Anybody got a release date?
(Hopefully by the end of the year?). 


/-------------------\/----------------------------------------------------\
| --The DarkElf--   | If Architects built buildings the way programmers   |  
| sdrumm@cs.umr.edu | wrote programs, the first woodpecker that came along|
| S103317@UMRVMA    | would destroy civilization.                         |
\___________________/\____________________________________________________/

Newsgroups: comp.os.os2.programmer
From: PNIELSEN@FINABO.ABO.FI (Peter Nielsen Inf)
Subject: Re: 32-bit programming using MASM 6.00b
Organization: Abo Akademi University, Finland
Date: Wed, 16 Dec 1992 11:27:31 GMT
X-News-Reader: VMS NEWS 1.24

In <1992Dec14.131817.14808@athena.mit.edu> jawetzel@athena.mit.edu writes:
> Is there anyone out there who has experience assembling 32-bit OS/2 v2.0
> programs using Microsoft's MASM 6.00b.  I thought that I could use the 
> flat memory model but LINK386 chokes on the object code.  LINK386 does not
> complain if I use the normal segmented model but the EXE created generates
> a 000E trap. 

Write a simple C-program and compile with generate assembly (icc /Fa)
This gives you an excellent example on how to declare the CODE and DATA
'segments'... (Don't use the simplified .DATA and .CODE they will get you
into a whole lot of trouble... like Oh yeah my progam works.... - NOT!)
I have been using C SET/2 and MASM 6.00 with the flat model without problems...

Peter Nielsen
pnielsen@finabo.abo.fi
From: toddc@addiction.inslab.uky.edu (Todd Caldwell)
Newsgroups: comp.os.os2.programmer
Subject: Findfirst() & Findnext()
Date: 15 Dec 92 21:17:10 GMT
Reply-To: toddc@inslab.uky.edu
Organization: University Of Kentucky, Dept. of Math Sciences

I have written a small utility to run in a dos session that tells me my  
current swap file size.  I had to write it in turbo c++ because I can't  
find the directory information structure in the emx/gcc libraries or  
include files.  Help!!!  I am relatively new to 'serious' programming and  
very new to os2 app development.  I am having a very hard time porting my  
dos apps to os2.  All the functions seem to be in different places.   
Somebody please help me before I revert to my dos ways....please!!!

The structure is called ffblk in turbo c++ and is defined in the dir.h  
file.  It's under a different name in the emx/gcc files.  How can I access  
it.  Is there anyway I can get some kind of reference to tell me where all  
of these functions and such are?

Thanks a lot in advance.....
Todd Caldwell

p.s.  Please respond quickly...leaving campus Friday and won't have access                                                    
to my account until mid January.
From: francis@vnet.ibm.com (Tim Francis)
Date: Thu, 17 Dec 92 16:43:42 EST
Subject: OS/2 PDK CDROM
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 <BzE4qA.43p@DMI.USherb.CA>,
menaf00@DMI.USherb.CA (FRANCOIS MENARD) writes:
>
>Also, are the folks at IBM Toronto labs up to allow inline assembler with
>the next release of C++ Set/2

There are no plans (that I'm aware of) to allow inline assembler with
C Set/2.  What is being done is to add more functions, to reduce
(although not eliminate) the need for an assembler.  These functions
include inport, outport, int, and some floating point stuff.   -tim
Newsgroups: comp.os.os2.programmer
From: mhami00@nx35.mik.uky.edu (melinda hamilton)
Subject: ffblk directory structure in emx/gcc
Reply-To: toddc@inslab.uky.edu
Organization: University Of Kentucky, Dept. of Math Sciences
Date: Sun, 13 Dec 1992 21:44:23 GMT

What is the emx/gcc equivalent of the turbo c ffblk directory information  
structure....Thanks


Todd caldwell
From: checker@acf5.NYU.EDU (checker)
Newsgroups: comp.os.os2.programmer
Subject: Re: Is OS/2 a good development platform for Windows 3.1?
Date: 12 Dec 92 03:49:16 GMT
Organization: New York University

tmg@midget.saar.de (John Tmg) writes about developing for Windows under
OS/2 2.0:

>Be aware that the debuggers will _not_ run under OS/2 2.0.

This isn't exactly true.  Borland's tdw will run.  You don't get 386
debugging, so a UAE will crash the debugger and the WINOS2 box, but they
reboot quickly with 16MB of ram.  I've had one strange run in with
Winspector than crashed all of OS/2 when the UAE hit, but other than
that time the winspctr.log file gets written before OS/2 closes the box.

I've found OS/2 to be a fairly good Windows development environment.  It
acts slightly differently than normal Windows, but it is close enough
for most work.  You should obviously test your code under retail
Windows before any sort of release.

Chris
Newsgroups: comp.os.os2.programmer
From: lingz@robin.SanDiego.NCR.COM (Ling.Zhao)
Subject: PM gas gauge and percentile display sample program
Keywords: gas gauge sample program
Reply-To: lingz@robin.SanDiego.NCR.COM (Ling.Zhao)
Organization: NCR Corporation, Rancho Bernardo
Date: Fri, 18 Dec 1992 00:01:45 GMT

I have just started learning OS/2 PM programming.  I am currently
trying to implement a gas gauge and/or percentile display program 
(procedure) like the ones we see under Microsoft Windows.  Does 
any kind soul out there in the netland have or have seen this kind 
of sample programs?

Thanks very much.

Ling
From: ameline@vnet.ibm.com (Ian Ameline)
Date: Mon, 14 Dec 92 13:53:31 EST
Subject: Workframe and MSC 6.00A
Newsgroups: comp.os.os2.programmer
Organization: C-Set/2 Development, IBM Canada Lab.
Disclaimer: This posting represents the poster's views, not those of IBM

In article <1gb6grINNcjk@morrow.stanford.edu>,
GG.MPD@forsythe.stanford.edu (Michael Durket) writes:
>
>I'm getting a C1024 error running MSC 6.00A under the Workframe
>(the compiler was installed so that it runs under OS/2 not
>DOS).
>
>The error is due to the fact that I'm compiling with the /Zi
>option and is caused by the compiler running out of files.
>(I located an article in the Microsoft Knowledge Base that
>indicates that the /Zi option requires a file handle, and
>that this may cause nested includes to run out of files thus
>causing the C1024 error).
>
>According to the article, the fix is to edit CONFIG.SYS to
>increase the FILES= parameter. This is all well and good,
>but that applies to DOS programs only, correct? For OS/2
>does this have any meaning? If so, how do I adjust it for
>running MSC in OS/2 protected mode under the Workframe?
>
>Any assistance is appreciated.
>

   The WF makes sure that there are *lots* of files available for its
child processes. The problem is that since the WF uses file handles 1
through about 9 or 10, the child process gets file handles 10 through
whatever (much more than 20 left). The problem is that MSC has an array
of objects that it indexes with the file handle -- this array is from 1
20. So no matter how many file handles are left available, MSC can only
use those numbered less than 20 -- and there's fewer of those left than
it wants to use. (No comments on this design)

Regards,
Ian Ameline.

Newsgroups: comp.os.os2.programmer
From: bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor)
Subject: Re: DOS Box Programming
Organization: /usr/local/lib/news/organization
Date: Mon, 14 Dec 1992 14:25:08 GMT

In article <boh.724320875@sfu.ca> boh@fraser.sfu.ca (Changhao Boh) writes:
>Hi, I am wondering about programming a serial communication programme in DOS
>but would like to make it "OS/2 aware".  Thus I have the following questions.
>
>   1.  Is there a way to detect if a programme is operation in OS/2 2.0's
>       dos box ?
>
>   2.  Is there a way a programme, running in OS/2 2.0's DOS box, can release
>       clock cycles to OS/2 ?

One simple way to release clock cycles it is to make your program 
"DESQView-aware", and then loading the OS2SPEED utility (found in Hobbes). 
This utility recognizes the DV interrupt for releasing time-slices and
does the same for the DOS box. 

There is an interrupt to use for releasing time slices under DV. 
Unfortunately, I dont remember what it is, but you can get the complete
DV interrupts from a file on SIMTEL20 or ask in the desqview newsgroup.

I am using MS-KERMIT which is desqview aware in a dos box, with the
OS2SPEED utility loaded and it works great.


>Changhao.
>boh@sfu.ca

Dov
>
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: PM gas gauge and percentile display sample program
Keywords: gas gauge sample program
Date: 18 Dec 92 22:12:42 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Dec18.000145.4434@donner.SanDiego.NCR.COM> lingz@robin.SanDiego.NCR.COM (Ling.Zhao) writes:
>I have just started learning OS/2 PM programming.  I am currently
>trying to implement a gas gauge and/or percentile display program 
>(procedure) like the ones we see under Microsoft Windows.  Does 
>any kind soul out there in the netland have or have seen this kind 
>of sample programs?

OS/2 2.0 has a standard dialog object called a "slider" that will do
this.  Output sliders will show up as the "percent completed" displays
that Windows users are familiar with.  Input sliders show up as a
variant on scroll bars - run the "Cat And Mouse" game that comes with
OS/2 to see sliders - it's settings dialog uses them.

The previous issue of OS/2 Monthly Magazine had an article on
programming sliders.
-- 
  |)  David Charlap          | .signature confiscated by FBI due to
 /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
((|,)                        | source of these .signature virusses
 ~|~
Newsgroups: comp.os.os2.programmer
From: mhof@iiic.ethz.ch (Markus Alexander Hof)
Subject: PM behaving like X/Windows
Originator: mhof@d16
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH)
Date: Thu, 17 Dec 1992 11:34:42 GMT



Hi,

I wrote such a little utility to behave PM like XWindows.
It behaves quite similar, with some differences.

1. If the window under the cursor is activated it is
	automatically moved to the foreground.
2. May still have some little bugs, and wasn't tested
	with WIN OS/2 seamless.

If there is anyway anybody interrested in getting the
source or the executable, I could mail it without any
problem. Just send me mail to below adress. If interes
is big enough, I could ftp it up to hobbes.

Bye, and happy Xmas

Markus


INTERNET : mhof@iiic.ethz.ch
From: hacker@cco.caltech.edu (Jonathan Bruce Hacker)
Newsgroups: comp.os.os2.programmer
Subject: adding TeX support to EPM
Date: 17 Dec 1992 04:37:30 GMT
Organization: California Institute of Technology, Pasadena
NNTP-Posting-Host: punisher.caltech.edu

I am wondering if anyone has written macros for EPM for running TeX
from the EPM menu bar?

Also, is there a simple way to have the EPM spellchecker ignore words
starting with special characters?  I am thinking specifically of the
'\' escape character in TeX.  The closest thing I can find is the
MY_SCRIPT_FILE_TYPE flag, but I'm not too sure what script stuff it
ignores.


-- 
Jon Hacker
Caltech, Pasadena CA
hacker@tumbler-ridge.caltech.edu
From: lhoang@orion.oac.uci.edu (Long Hoang)
Newsgroups: comp.os.os2.programmer
Subject: Re: GPI function and Message Parm's reference?
Date: 17 Dec 92 23:34:37 GMT
Organization: University of California, Irvine

In article <1709@airgun.wg.waii.com> mitch@de01.denver.waii.com (Mitch Upton) writes:
>
>     I have been working with the GPI and  Window functions in OS/2 2.0 recently and I noticed that there is very little reference material available.  Specifically, I need reference material on parameter lists for the GPI/Dos/Win functions.  Also, a good comprehensive list of possible application and system messages and their associated message parameters would be helpful.  I have found certain texts that touch on some functions and messages, but nothing dedicated to them.  Any suggestions on where 
>
>find said information would be GREATLY appreciated.

   Source:
       1. IBM  OS/2 2.0 Technical Library.
              17 Volumes. Currently priced at $299.00
              PM messages are covered in details for each predefined PM class.
              All GPI/Dos/Win APIs are listed.
              Four of the volumes are Programming Guides. A must. Not available
                  online.
              SOM (System Object Module) for WorkPlace Shell.
              REXX language.
              Device Drivers. Not available online.
              CUA (Common User Access) description. Not available online.
 
    or
       2. IBM Toolkit 2.0  Online Reference.
              All references. Good enough for your needs mentioned above.

    well, that's all I know. Hope this help. Bye.
From: claudio.fahey@idcbbs.uu.holonet.net (Claudio Fahey) 
Newsgroups: comp.os.os2.programmer
Subject: calling os2 from win/os2 query
Date: 16 Dec 92 13:44:00 GMT
Distribution: world
Organization: IDC BBS - Alameda, CA - 510-865-7115
Reply-To: claudio.fahey@idcbbs.uu.holonet.net (Claudio Fahey) 

To: AXIOM@cup.portal.com (Lowell D Kaufman)

LDK>  I am wondering if it is possible to call an OS/2 executable program
LDK>  from a windows program in os2 2.0 (win/os2).

LDK>  Specifically, if a user is in a toolbook (windows multimedia program)
LDK>  application, I would like it to be possible to double click on an icon
LDK>  and call up Knowledgeware's ADW program, an OS2 product.  Is this
LDK>  possible from Windows??

I doubt you could do it directly but you could probably do it using
a named pipe.  You could create a small OS/2 program that runs in the
background and waits for a named pipe and runs the OS/2 program when
the necessary information goes through the named pipe.
---
 . OLX 2.1 TD . REALITY.SYS Corrupted: Re-boot universe? (Y/N/Q)
                                                                                                  
Newsgroups: comp.os.os2.programmer
From: cjs33278@uxa.cso.uiuc.edu (Carl+Chris Samos)
Subject: I need assistance creating HELP for my app
Organization: University of Illinois at Urbana
Date: Tue, 15 Dec 1992 15:38:54 GMT

I'm trying to get the helpfile finished for my application, but I'm running
into a little trouble.  The only trouble I'm having is creating the .IPF file
that I compile with IPFC.  Currently I'm using Describe (a very nice OS/2
word processor) to write the help text.  I then save the file in RTF.  My
coworker wrote a RTF to IPF converter, but it needs a little work.

So I was wondering if there was some other way to generate a .IPF file.  I'd
rather not type it by hand, as my app currently has over 250 help pages, and
it grows daily.

If you have any suggestions or help, please email or post.

Thanks in advance!

-Carl Samos
 cjs33278@uxa.cso.uiuc.edu
 Merriam Lab
 University of Illinois


Newsgroups: comp.os.os2.programmer
From: etxabju@eua.ericsson.se (Anders Bjurman)
Subject: Re: How to examine a  metafile (.met)?
Reply-To: etxabju@eua.ericsson.se
Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
Date: Tue, 15 Dec 1992 07:45:48 GMT

In article 16515@midway.uchicago.edu, sip1@ellis.uchicago.edu (Timothy F. Sipples) writes:
>In article <1992Dec8.144101.9237@eua.ericsson.se> etxabju@eua.ericsson.se writes:
>>Is there some kind of browser and/or editor available for IBM OS/2
>>meta-files / graphic orders, possible with comments for CUA-violations?
>>I am currently devoloping an application that places a graphical picture in the
>>clipbord as a metafile. It is possible to paste that picture in some applications
>>(Word for OS/2 for example), but other applications don't like it at all. I
>>need some way to debug this file.
>
>I'm not sure I understand your question.
>
>OS/2 comes with a Picture Viewer applet, which can view .MET (PM
>metafile) files.
>
>Is that what you were looking for?
>
>-- 
Nope. I want to look at metafiles (disk file or the clipboard - it is the same format)
as *text* (e.g. GPILINE p1, p2; GPIMOVE p3; etc).

I have a quite complex program that draws a picture and there are some errors in it and
I want to see what output it produces.

When I look at my picture in the picture viewer it looks ok, but in the clipboard viewer
it's not quite that good.

Regards - Anders Bjurman
---
             __________________________________________________________
 `"""'     _/  RF Anders Bjurman,              Memo: eri.etx.etxabju   \_
  O O   __/    Ericsson Telecom AB             Anders.Bjurman@eua.se     \
   >  _/       S-125 25 Alvsjo, Sweden         +46 8 727 49 80          _/
   o   \_______________________________________________________________/