HDTenEightyP/NetNews huggingface dataset:
From: sal8@po.cwru.edu (Steve Luzynski)
Newsgroups: comp.os.os2.programmer
Subject: Re: Lost Fonts at High Resolution
Date: Sat, 12 Dec 1992 23:27:37 GMT
Organization: Case Western Reserve University
NNTP-Posting-Host: b61442.student.cwru.edu

In article <1992Dec11.172517.10395@rock.concert.net> rls@tip.wedge.nt.com (Robert L. Smith) writes:
>From: rls@tip.wedge.nt.com (Robert L. Smith)
>Subject: Lost Fonts at High Resolution
>Date: Fri, 11 Dec 1992 17:25:17 GMT
>
>    When using a DOS or OS command window (as opposed to full screen)
>with the standard DISPLAY.DLL for 640x480x16 VGA, the "Change Fonts"
>selector allows a wide range of fonts for use in the window.  In
[minor clipping]
>TSENG drivers, one has yet to be found which offers that 10x6 font.
>Why not?  Surely the fonts are not contained in the drivers!  If they
>are system fonts they should be available to all drivers.

If I understand correctly that you have an ET4000 card, then you're in 
luck - the drivers in the Service Pack give you back all those font choices.
And yes, the fonts _are_ in the drivers. 

----------------------------------------------------------------------------
steve luzynski @ case western reserve university in cleveland, oh
sal8@po.cwru.edu             | voice calls cheerlessly accepted at x2153.
----------------------------------------------------------------------------
happy people are deluding themselves that there is nothing wrong.
----------------------------------------------------------------------------
life is but a series of bitter dissapointments.
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Yet another novice on PM programming
Date: 18 Dec 92 22:08:42 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <19921217.121610.410@almaden.ibm.com> lansche@torolab6.VNET.IBM.COM (Martin Lansche) writes:
>In <1992Dec17.171822.1978@iplmail.orl.mmc.com> Dave Mckinny writes:
>>Hello,
>>I have a book on PM programming by Dror and somebody else I don't have it
>>with me but ....
>>My problem is that of the three sample programs I've tried only the first
>>worked. I'm using EMX/GCC. The first program just sends a beep on the speaker.
>>It worked no problem. The second program is supposed to put a slider on the
>>screen. It compiles and links ok, but when I try to execute it nothing happens.
>
>David,  I don't know if this helps, but I have managed to get most (all
>but one that I tried) of the examples from the book to work.  I suspect
>that your problem is your linker options.  Which linker are you using?
>LINK386.EXE?  You need to specify these options to LINK386.EXE:
>   /NOL /NOE /PM:PM
>and you must give the correct name to the prompt for .DEF file.

Rather than use the /PM:PM parameter, I prefer to hared-code the API
type in the .DEF file.  Just put the word "WINDOWAPI" after the name
on the first line of the .DEF file.  Then you can leave out the /PM
parameter.  I prefer this, because the API type isn't going to change
at all, and this information is more closely related to module
definitions than to linking.
-- 
  |)  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: pendrith@spectrum.cs.unsw.oz.au (Mark Pendrith)
Subject: VGALIB, _VIOPHYSBUF, _VIOMODEINFO
Reply-To: pendrith@spectrum.cs.unsw.oz.au (Mark Pendrith)
Organization: unsw
Date: Sun, 20 Dec 1992 03:46:06 GMT

i've attempted to recompile john stone's (johns@cs.umr.edu) vgalib library
of vio graphics routines in emx/gcc, but don't have struct definitions for
_VIOPHYSBUF and _VIOMODEINFO available in the headers, it would seem.

can anyone help by either telling me what the structs are, or if they are
defined in the emx/gcc headers, what to #include?

any help would be appreciated. if i can get these to go, i will upload the 
results. these routines give some basic borland-like graphics routines
for full screen os/2 apps. i think they would make a nice extension to
the gcc libraries.

- Mark

pendrith@cs.unsw.oz.au

Newsgroups: comp.os.os2.programmer
From: Andrew Bros <bros@convex.COM>
Subject: Re: GNU C/C++ for OS/2
Originator: bros@neptune.convex.com
Date: Tue, 15 Dec 1992 19:41:15 GMT
Reply-To: bros@convex.COM (Andrew Bros)
Organization: Convex Computer Corporation, Richardson, TX
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

In article <13100003@tisdec.tis.tandy.com> kevinl@tisdec.tis.tandy.com writes:
>
>When using GNU C/C++ for OS/2, I am unable to run the programs it
>produces.
>
>Everything compiles and links OK when just compiling a C program,
>but when I try to run it, OS/2 stops the program and says it
>created a problem and cannot continue.
>
>When I try to link a C++ program I get unresolved externals that
>look something like __?????__, where ? represents some character--
>some undefined constant I think.
>

  It's been a while since I used GCC/2, but this sounds like you're
not running "collect" on your C++ code.  Look at the example programs'
makefile for more information.

>Also, when link386 finishes, it says that the program type is not
>specified "assuming WINDOWCOMPAT."  How do I specify the program type?
>I tried the /PMTYPE option, but it did not help.  This is really
>secondary.  I don't mind the message as long as I can get the programs
>to actually _run_.

  Chances are, WINDOWCOMPAT is what you want.  As I understand it, it
means that the program is able to be run in a window, as opposed to
full-screen.  PMTYPE would be those that actually use PM features
(i.e., buttons, windows).  I think the third example program is a PM
C++ example.

>Has anyone else experienced similar problems?  Any and all help would
>be appreciated.
>--
>Kevin K. Lewis             | My opinions may be unreasonable
>kevinl@tisdec.tis.tandy.com| but such is the voice of inspiration

  I have to say that I gave up on GCC/2 in favor of EMX/GCC when EMX
added a C++ compiler.  It has support for gdb, and has a built-in
linker (you don't have to use LINK386).  It also seems to be better
supported and more widely used than GCC/2.
-- 
Andrew Bros                             bros@convex.com
System Integration Group                Convex Computer Corporation
It does not do to leave a live dragon out of your calculations,
if you live near him.  - JRR Tolkien, The Hobbit.
Newsgroups: comp.os.os2.programmer
From: harriga@mail.auburn.edu (Darrel Hankerson)
Subject: Re: Curses LIB ?
Reply-To: harriga@mail.auburn.edu (Darrel Hankerson)
Organization: Auburn University, Alabama
Date: Wed, 16 Dec 1992 12:57:55 GMT

In article <1992Dec15.111141.1650@edfd.uucp> markus@edfd.uucp (Markus Gruenkorn (MAGIC)) writes:
>Does anybody know, if the curses LIB is available for OS2 ?

There are the older curses libs (from PCCurses, I believe) on ftp-os2.nmsu.edu,
but these have at least one serious bug and are quite slow. 

I used Hessling's PDCurses 2.0, recently released on comp.sources.misc and
available at simtel20.army.mil in pd1:<msdos.screen>.  This curses worked
very nicely in a 16-bit port of sc (Spreadsheet Calc) that I did using
MSC 6.00A.  There are makefiles for a number of compilers, including EMX/gcc.

--Darrel Hankerson hank@ducvax.auburn.edu
From: hatton@socrates.ucsf.edu (Tom Hatton)
Newsgroups: comp.os.os2.programmer
Subject: Re: OS/2 Developer's Kit CDROM
Date: 14 Dec 92 19:06:05 GMT
Organization: UCSF Computer Graphics Lab

misra@fsg.com (Mark Israel - Fusion Boston) writes:
>Hey, how much did you pay for the CD version and where did you order it from?
>Did any one get the beta of OS/2 2.1 on CD.

Call the standard 1-800-3-IBMOS2 number, ask for the PDK CDROM, answer
questions, decide whether to get just the CD ($15) or CD plus the 
$10 diskette [this seems outrageously priced in comparison, dunnit?]
with the AT&T Class Libs - about 100k of header files, but needed for 
C++ compiler experimentation; you decide if you need it.
 
There is a tremendous variety of software on the CD, and it does
essentially include a beta of OS2 2.1, or whatever they decide to label
it at release - that is, there is OS2 with Win3.1 support, but it is
not the latest version of the beta, the IBM internal version which 
apparently has some improvements. The CD version is newer than the
previous WinOS23.1 beta's, however, so it should be more workable.

It also contains the Service Pack, in both 3.5 and 5.25 disk image
form, so you can set up several combinations of OS2 2.x and see
which works best, or, perhaps, which can crash hardest :-)
 

-- 
Tom Hatton
hatton@cgl.ucsf.edu
(415)-476-7986
Newsgroups: comp.os.os2.programmer
From: petere@world.std.com (Peter J Eddy)
Subject: Re: Zortech C++
Organization: The World Public Access UNIX, Brookline, MA
Date: Sun, 13 Dec 1992 18:12:05 GMT


I believe the 32 bit Zortech C++ compiler for OS/2 is now available
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
From: mhof@iiic.ethz.ch (Markus Alexander Hof)
Subject: PM behaving like XWindows
Originator: mhof@b14
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH)
Date: Fri, 18 Dec 1992 08:28:55 GMT

Hi,

2 days ago I sent an article regarding a utility I wrote,
to behave PM like X-Windows. I've putted it now up to
ftp-os2.nmsu.edu, so everybody can pull down his own
copy. If somebody hasn't ftp-access, he has to write
a mail to me, so I can send it to him. But please first
try all your friends who possibly have ftp-access, because
this will need some time to be done, and second you will
probably get your package not before next year.

Yes my university starts the christmas holiday already 
now.

Merry christmas and a happy new year to all other
OS/2 programmers (and of cource to everybody else)

Markus

INTERNET: mhof@iiic.ethz.ch
Newsgroups: comp.os.os2.programmer
From: bjaspan@athena.mit.edu (Barr3y Jaspan)
Subject: Back from the Dead: status, and questions
Organization: Massachusetts Institute of Technology
Date: Mon, 21 Dec 1992 00:58:20 GMT

After about a six month hiatus, I hope to return to OS/2 hacking.  I have been
almost entirely out of touch for this time, so I am way behind the times.

Questions:

o What is the current status of emx/gcc?

o What is the current status of GCC/2?

o What is the deal with this PDK CD-ROM I've heard about?  How much does it
cost to join the new DAP, who do I call, etc.

o What are the current CSD levels for: OS/2 base system, C Set/2+Developer's
Toolkit+Workframe/2, TCP/IP 1.2.1?  Where can I get them? (ftp-os2?)

Status:

o OS'2 Programmer's FAQ.  Obviously, it is as out of date as I am.  I will try
to bring it back to life; alternatively, if someone more knowledgeable would
like to take it over, send me email.

o 32 bit TCP/IP .DLL wrapper for IBM's TCPIPDLL.DLL.  Has anyone else done
this yet?  I have a basically working but largely incomplete system.  If no
one else has done it, I'll finish mine up and make an alpha release as soon as
I can.

Thanks for any information.

-- 
Barry Jaspan, bjaspan@mit.edu
From: murrayk@prism.CS.ORST.EDU (the Dodger)
Newsgroups: comp.os.os2.programmer
Subject: How does monitor.exe get its process info?
Date: 13 Dec 92 04:13:57 GMT
Article-I.D.: flop.1geda5INN5qe
Distribution: world
Organization: CS Dept, Oregon State University
NNTP-Posting-Host: prism.cs.orst.edu

I recently downloaded the file cpumon3.zip from hobbes that contains the
monitor program from BonAmi Software. This seems like a very powerful cpu
monitor program, though it's hard to tell because very nearly every menu
option is disabled. 8^(.

However, looking from a programmer's point of view: How the hell does the
program get the kind of information that it displays? Is it very accurate?
I've only got a 33mhz 386 and when I make a project with CSet/2 that takes
about 10 minutes to compile, My processor is idle at least 50% of the time,
even while downloading (2400 baud...) in the background with many other utils
running also. Is this real? I suppose that my processor could be waiting around
for the disk (SCSI) and memory quite a bit. But that still leaves the question
of how you can get that accurate of information. I've seen it done on every
UNIX system I've seen, but never on OS/2. The other monitors available are not
accurate at all, not to say they are not usefull.

I'm just curious. I would like to be able to get some serious system statistics
for myself and I'm wondering how it can be done.

Keith

-- 
                              ____          _____  ____
Keith Murray                 /     /___/ /\ \    \ \____    P.O. Box 1889
murrayk@prism.cs.orst.edu   /___  /   / /__\ \____\ ____\   Corvallis OR 97339
   the Dodger                  s  o  f  t  w\ a  r  e
From: d9mikael@dtek.chalmers.se (Mikael Wahlgren)
Newsgroups: comp.os.os2.programmer
Subject: Re: New programmer requesting assistance
Date: 12 Dec 92 10:21:51 GMT
Organization: Chalmers University of Technology, Gothenburg Sweden

kitchin@lf.hp.com (Bruce Kitchin) writes:

>Basically
>unless you do something strange, the standard behavior of windows such as
>moving them and sizing them and redrawing them is handled by PM.  You
>have options to override them but people usually only do this to support
>something rather different.

This is almost true, but reg. REDRAWING them, of course you will have to
supply the draw function (i.e. respond to the WM_PAINT message).  PM takes
care of the decision to what windows to redraw, but the application must
do it itself.

Mikael Wahlgren
Newsgroups: comp.os.os2.programmer,comp.databases,comp.databases.sybase,comp.os.os2.networking
From: brown@dlogics.com (Steve Brown)
Subject: WINOS2/DOS <-> OS/2 Named Pipe Bug?
Organization: Datalogics, Inc.
Date: Thu, 10 Dec 92 18:27:10 GMT

I've been trying to get SQLServer to run locally from a WINOS2/DOS session with 
no success.

I just got a bulletin from Microsoft claiming (justifiably) that their SQLServer
won't talk to WINOS2/DOS sessions on the same machine (local named pipes). 
They claim:
	Due to a bug in the OS/2 2.0 named pipes implementation, no
	support is available for client applications running in the virtual
	MS-DOS and Windows sessions running on OS/2 2.0.  This bug also
	prevents SQL Administrator from running on OS/2 2.0.

I am aware that network named pipes are not supported from the WINOS2/DOS,
but find nothing about local named pipes being busted.  Does anybody have any
background on this, like, Is it true?  If so, will it be fixed?  


Steve Brown / Datalogics, Inc. / 441 W. Huron St. / Chicago, IL 60610
brown@dlogics.com / 312-266-4380 / ...uunet!dlogics!brown
Newsgroups: comp.os.os2.programmer
From: burleigh@ogre.cica.indiana.edu (Frank Burleigh)
Subject: Trouble making ZIP (gnumk362, dmake)
Summary: just what it says
Keywords: gnu make dmake zip
Organization: Indiana University
Date: Sun, 13 Dec 1992 07:40:45 GMT

I'm having trouble building the recent ZIPs with gnu make
(ftp-os2:/pub/os2/2.0/programming/gnumk362.zip) and dmake 3.8.  Perhaps
someone could help me?

I'm no makefile maven, but it appears makefile.os2 uses make to call
itself with command line parameters built in the first pass through
makefile.os2.  These command line arguments are in quotes, so for ex.,
"gcc ..." rather than gcc ....  OS/2 responds with messages saying that
it wasn't given a batch file or executable name.  makefile.os2 makes
reference to gnu make, but perhaps there are several versions floating
around out there.  Maybe someone could point me to one that works?

I tried dmake (ftp-os2:/pub/os2/all/programming/dmake38x.zoo) as well,
but that seems to want a dmake.ini, a sample of which is not included
in dmake38x.zoo.  I used -r to suppress the search for dmake.ini, but
that didn't work either, as in:

D:\temp dmake -r -f makefile.os2 gcc
f makefile.os2 zips \
        CC="gcc -O" \
        CFLAGS="-DOS2" \
        AS="gcc" \
        ASFLAGS="" \
        LDFLAGS="-o ./" \
        LDFLAGS2="-s -los2" \
        OUT="-o" \
        OBJ=".o" \
        OBJA="matchgcc.o" \
        DEF="zip.def"
dmake:  Error -- f: No such file or directory

If someone could send me their dmake.ini, that might be helpful.

If someone could clue me to a solution, I'd be much obliged.  Thanks.



--
Frank Burleigh
Department of Sociology, Indiana University, Bloomington, IN  47405
CIS 72730,1017; Internet burleigh@ogre.cica.indiana.edu; Bitnet burleigh@iubacs
Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Re: Multicolumn Listboxes
Date: Thu, 17 Dec 1992 14:37:52 GMT
Organization: PANIX Public Access Unix, NYC

In <BzCttq.569@aplcenmp.apl.jhu.edu> robbar@aplcenmp.apl.jhu.edu (Robert Baruch) writes:

>Anyone have any code to perform multicolumn listbox insertions?
>This would be a great help to me if someone knew or had the source
>to do this!

Use the container control in details view.

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: joiner@exa.cs.umn.edu (Jay K. Joiner)
Subject: Re: AT&T enhancements for the DAP CD-ROM disk for $10. Worth it?
Keywords: OS/2, DAP, AT&T, enhancements, C++
Organization: University of Minnesota
Date: Sun, 13 Dec 1992 21:58:44 GMT

In <Bz7L6w.3r8@cs.uiuc.edu> joshi@cs.uiuc.edu (Anil Joshi) writes:

>I called the 1-800-3-ibm-os2 the other day to order the DAP CD-ROM. The person
>at the other end asked whether I would like to order the AT&T enhancements
>floppy too for an extra $10. Does somebody know what it contains? Any help
>would be greatly appreciated.

You get the headers for the standard iostream and complex classes.  These 
probably aren't needed for PM programs, but would come in handy for 
character-mode apps.

Newsgroups: comp.os.os2.programmer
From: kvien@Elkraft.Unit.NO (Oddgeir Kvien)
Subject: novice question`s
Reply-To: kvien@Elkraft.Unit.NO (Oddgeir Kvien)
Organization: University of Trondheim
Date: Mon, 14 Dec 92 15:53:13 GMT

This might be some rather stupid questions, but you don`t learn if you don`t ask.

I am  going to learn OS/2 PM programming and I whant some information.

I have seen that Petzold`s book is recomended by someone here, but since it is
difficult to get what is the 2`nd best book about OS/2 programming?

I got the book: Programming OS/2 2.0 by example, but it is a litle bit to
adwanced for a beginer.

Do anyone have source code for a "Hello World" program or any other program
that shows the basic of a OS/2 program. If so could they mail it to me?

I am about to finish Petzold`s book in Windows programing and I asume there
is similarities between OS/2 and WIndows programing. 

I have seen someone mentioning the Programming faq, but I can`t find it at Hobbes.
Dos it exist and if so where is it.



Thanx

Oddgeir
-- 

+-----------------------------------------------------------------------+
| Oddgeir Kvien, Norwegian Institute of Technology                      |
|                Faculty of Electrical Engineering and Computer Science |
|                                                                       |
| email: kvien@elkraft.unit.no                                          |
| phone: +47-7-594269                                                   |
+-----------------------------------------------------------------------+
Newsgroups: comp.os.os2.programmer
From: jwh@citi.umich.edu (Jim Howe)
Subject: IBM Beta C++ Compiler and SOM
Date: Mon, 14 Dec 92 16:51:51 EST
Organization: IFS Project, University of Michigan
Reply-To: jwh@citi.umich.edu

I have the latest IBM PDK (November) which includes
the beta C++ compiler as well as the programmers
toolkit.  I was trying to rebuild the WPCAR sample
program and got an unexpected compiler error.  The
error occurs in the car.ih file, which is generated
automatically from the SOM compiler.  The specific
error was:

car.ih(233:24) : severe error EDC0002: Unexpected compiler
                 error #C000000005:1EFCA occurred.

The section of code which cause the problem looks
like this:

    return (Car_QueryBrakes(somSelf));

Has anyone else run into this problem?  Is anyone successfully
using the beta C++ compiler with SOM?  Are there some other
compiler flags that I need to use to get the thing to compile?
I'm using the makefile which came with the toolkit but it's
possible that the C++ compiler may need different flags.  Any
help would be appreciated.



James W. Howe                  internet: jwh@citi.umich.edu
University of Michigan             uucp: uunet!mailrus!citi.umich.edu!jwh
Ann Arbor, MI   48103-4943
From: kitchin@lf.hp.com (Bruce Kitchin)
Newsgroups: comp.os.os2.programmer
Subject: Re: Lost Fonts at High Resolution
Date: 11 Dec 1992 21:47:51 GMT
Organization: Hewlett Packard Santa Clara Site
NNTP-Posting-Host: eden.avo.hp.com
X-Newsreader: TIN [version 1.1.2 PL7]

Robert L. Smith (rls@tip.wedge.nt.com) wrote:
: 
:     Unfortunately when I substitute a different DISPLAY.DLL, one that
: affords the 1024x768x16 resolution available in my hardware, the range
: of available fonts shrinks drastically.  Though I've tried several

:     Can someone explain this problem?
: 

I've had the same problem using Video 7 drivers (1.x drivers lest anyone
get excited).  I suspect that it is the driver that tells the window
code what fonts are available and so that what we are experience is
the fact that the $*#%& drivers are not up to what they should be.

Bruce
Newsgroups: comp.os.os2.programmer
From: etxabju@eua.ericsson.se (Anders Bjurman)
Subject: Re: OS/2 libraries thread-safe ?
Reply-To: etxabju@eua.ericsson.se
Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
Date: Thu, 17 Dec 1992 09:41:08 GMT

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 ?
>
What C library? I can only speek for Microsoft C 6.0. I not quite sure about IBM Cset/2
yet, but I think the answers are applicable for that library as well.

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.

>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.

>
>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).

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

Sorry.

>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.

>
>Thanks for any info, Ernst.
>--

No problem. Hope it helped. Can someone with experience from Cset/2 and emx
tell how it's done there?

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