HDTenEightyP/NetNews huggingface dataset:
From: harris@garfield.catt.ncsu.edu (Michael Harris)
Newsgroups: comp.os.os2.programmer
Subject: Re: "Killing" child windows
Date: 12 Apr 92 03:24:25 GMT
Organization: North Carolina State University

gulcu@masg1.epfl.ch (Ceki Gulcu) writes:

>I really (desperately) need to to be able to kill child windows.

Are you saying that you don't know how to kill the child windows or that
the child windows won't die?

If you don't know how to kill them, look up WinDestroyWindow.  If you are
already using WinDestroyWindow, then are you using the correct window
handles?  If you are using WinWindowFromID to get the correct window handles,
are the window id's unique on your application window?

It seems to me that it would be a whole lot easier to just throw up a
multiple-select listbox.  It sure would use a whole lot fewer windows.
(I haven't seen your application so this may not be a desirable option.)

______________________________________________________________________________
     Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
 Vice-President, Computer and Technologies Theme Program, NC State University
(My opinions are my own and do not represent those of NCSU or IBM Corporation)
From: tholen@galileo.ifa.hawaii.edu (Dave Tholen)
Newsgroups: comp.os.os2.programmer
Subject: Re: Programming OS/2
Date: 8 Apr 92 23:28:41 GMT
Article-I.D.: news.1992Apr8.232841.24989
Organization: University of Hawaii

Doug McDonald writes:

> Now that OS/2 is now, officially, unequivocally, vaporware, how
> does one program it? What does a set of the necessary tools (i.e.
> C and Fortran compilers and an assembler and th enecessary linker and
> libraries) cost? Where does one get them?

That was an unintentional typo, I hope.  With the official release of
OS/2 2.0, it drops from the list of vaporware products.

As for tools, they abound.  I have in front of me the WATCOM literature
on their 32-bit C and FORTRAN compilers.  The educational pricing for
the latter is $250 and it is supposed to provide access to all system
functions in 32-bit OS/2.  It will ship later this month after they've
verified proper operation under GA.  Call 800-265-4555 for more information
(and let it ring a few times -- they tend to answer after five to eight
rings, in my experience).  The reviews of the earlier versions (for 32-bit
DOS extender environments) have been good, and the package includes a
profiler, make utility, debugger, and so on.

The Borland C++ compiler is coming later this year.  The IBM C Set/2
compiler should be available soon.  I believe there are a couple of other
C compilers in the works (Zortech?).

Finding programmer's reference books for the Workplace Shell is a different
matter.  Maybe somebody else can shed some light on this.  Petzold's book
on programming the Presentation Manager might be a good place to start.
Newsgroups: comp.os.os2.programmer
From: tholen@galileo.ifa.hawaii.edu (Dave Tholen)
Subject: Re: I have some questions.. (nobody had answered)..
Organization: University of Hawaii
Date: Sat, 11 Apr 1992 06:59:54 GMT

Bahri Bora writes:

> 1. Is there a good text editor running under OS/2 1.3? If so,
>    how can I get it?

There are several text editors that run in OS/2 protected mode.  I use
BRIEF, so I am unable to comment one way or the other about competing
products.  BRIEF 3.0 is a good, stable editor.  Recommended.  BRIEF 3.1
is buggy.  In my opinion, they added more bugs than features.  BRIEF 3.11
supposedly fixes the bugs, but it didn't fix mine.  Tech Support has
promised me a call this coming Monday to tackle these problems.  It took
two months for Tech Support to even acknowledge my existence, however, and
only after I made a call to Sales to complain.

Note that BRIEF 3.0 was produced by UnderWare.  Solution Systems already
had purchased the rights to the DOS version of BRIEF, and then they also
picked up the OS/2 version, so BRIEF 3.1 is a Solution Systems product.
I believe that explains the deterioration in product quality.

I don't know if BRIEF 3.0 is available anymore, and if it is, where to
get it.  Maybe some software house has old stock sitting in storage.
From: thomasw@ersys.edmonton.ab.ca (Thomas Wilkinson)
Newsgroups: comp.os.os2.programmer
Subject: Rexx and OS2
Date: Fri, 17 Apr 92 10:32:10 MDT
Organization: Edmonton Remote Systems #3, Edmonton, AB, Canada

Actually it is also in version 1.3 standard addition as well.
Unfortunately the documentation that comes with it really requires you to 
order additional manuals to use REXX effectively but it is there.


Thomas Wilkinson              thomasw@ersys.edmonton.ab.ca
Edmonton Remote Systems:  Celebrating 10 years of service to Northern Alberta
Newsgroups: comp.os.os2.programmer
From: rcain@netcom.com (Robert Cain)
Subject: Re: WinProgrammer's ?'s on WinOS/2
Date: Mon, 13 Apr 92 20:56:20 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: comp

Neither experienced with Windows nor objective but I encourage you to
continue just as you are.  Write to the windows API even though it is
a bit more painful and link through IBM's Mirrors tool that comes with
the development kit and makes the app native PM.  Then you get the best
of both worlds, the Windows market *and* the OS/2 market.

But do your Windows development under OS/2 like Microsoft does. :-)
-- 
Bob Cain    rcain@netcom.com   408-358-2007

"There are some strings.  They're just not attached."
                                                    Victoria Roberts
From: nicolai@lysator.liu.se (Nicolai Wadstr|m)
Newsgroups: comp.os.os2.programmer
Subject: Database design problem (under OS/2)!
Date: 14 Apr 92 01:25:07 GMT
Organization: Lysator Computer Club, Linkoping University, Sweden

I'm working on a mail handling (and BBS) system under OS/2, but
I've run into some problem in the design of the message database.
As the system will handle UUCP and USENET mail, messages can be
quite large. The best solution I've found so far, is to store
the message header in a B-TREE indexed database and the message
texts in seprate files, named after the header index number.
But this could result in that several thousand files are stored
in one directory, which probally will be quite slow (relativly) to
open (OS/2 will have to read the long directory often), but maybe
this can be speeded up by large cache size.
Message could also be stored in diffrent directories (one for each area
maybe) which would speed up directory read and file opens.
Is there any other solution?
Would greatlly appreciate any hints on this matter!


Regards,
            nicolai, nicolai@lysator.liu.se


--
Nicolai Wadstr|m                   # Internet:      nicolai@lysator.liu.se
                                   #
                                   # BBS:           +46-40-124554 (down)
                                   # Voice:         +46-40-975535
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Newsgroups: comp.os.os2.programmer
Subject: Job Opening
Date: 14 Apr 92 02:48:25 GMT
Reply-To: sip1@midway.uchicago.edu
Distribution: usa
Organization: Dept. of Econ., Univ. of Chicago

From time to time I get calls from people interested in finding
programmers with OS/2 skills.  (Why me?  :-))

If anyone is interested in securing such a position, please let me
know via netmail.
-- 
Timothy F. Sipples       Keeper of the OS/2 Frequently Asked Questions
sip1@ellis.uchicago.edu  List, available via anonymous ftp from
Dept. of Economics       128.123.35.151, directory pub/os2/faq, or via
Univ. of Chicago  60637  netmail from LISTSERV@BLEKUL11.BITNET.
From: jeff@fang.clearpoint.com (Jeffrey J. Griglack)
Newsgroups: comp.os.os2.programmer
Subject: Making window active while behind another window
Date: 8 Apr 92 16:24:40 GMT
Reply-To: jeff@fang.clearpoint.com
Organization: /home/jeff/.organization


I was at the Boston introduction party yesterday, so I got my first
look at OS/2 2.0.  It looked and acted very much like MSWindows.  One
of the things that I cannot do with windows that I would like to be
able to do is have a window that is partially obscured become the
active window (i.e. recieve keyboard input).  The main reason I would
like to do this to allow a user interface that allows me to just move
the mouse to the window and make it active without clicking in it
(okay, I'm a little lazy, but it makes a difference), but there are
other reasons.  

Is there a way to make the window active without having it pop into
the foreground?  Can somebody who has used OS/2 2.0 for a period of
time answer this?  Can an IBMer answer this?

Thanks,

--

-------------------------------------------------------------------------------
|Jeff Griglack             |  "The best kind of friend is like iron sharpening|
|jeff@fang.clearpoint.com  |  iron" -- "The Reptiles and I" by Shriek Back    |
-------------------------------------------------------------------------------
Newsgroups: comp.os.os2.programmer
From: ford@hpmcaa.mcm.hp.com (Dan Ford)
Subject: Re: Help in setting up SDK in DOS sessions
Organization: HP Cardiology Business Unit - McMinnville, OR
Date: Wed, 15 Apr 1992 18:19:59 GMT


GG.MPD@forsythe.stanford.edu (Michael Durket) writes:
> Hello,
> 
>    2) If I set them up in separate DOS sessions, how do I specify
>       the additional variables that must go into the environment,
>       such as SET HELPFILES= for PWB, say. And, can I set these
>       up on a per DOS session basis or do I have to edit AUTOEXEC.BAT
>       and thus affect all DOS sessions under OS/2? What do I do
>       if I run out of environment space - where is that set.
>
>    Any advice will be greatly appreciated,
> 
>    Mike Durket

  The environment space can be set individually.  
	1. Go to the icon for the dos program (or command.exe) you want
to start.
	2. Select Properties, then DOS SETTINGS
	3. Select Other: DOS Shell
	4. Edit the shell line to look something like this:

		C:\OS2\MDOS\COMMAND.COM C:\OS2\MDOS /P /E:1024

	The important part is the /E:1024,  that reserves 1024 bytes of 
environment space, it is usually enough.  You could reserve more if you
need it.  This will only apply instances started up with this icon, not all
DOS boxes or applications.  If you want to increase the environment space
for all DOS boxes, find the SHELL statement in your OS/2 config.sys file
and add the /E:xxxx part.  Then reboot. 

Good luck

Dan Ford
From: choup@bionette.cgrb.orst.edu (Ping Chou -- Biochemistry and Biophysics)
Newsgroups: comp.os.os2.programmer
Subject: First step in assembly programming
Date: 16 Apr 92 04:05:58 GMT
Article-I.D.: talon.1992Apr16.040558.7516
Distribution: usa
Organization: Biological Computing Consortium, OSU, Corvallis, OR.


        I know it's kind of alien to write my own assembler on one DOS
        machine and use it on a pure OS/2 2.0 box, but things are going
        quite smoothly and I would probably be able to use it right after
        my copy of OS/2 arrived.

        I am aware of GNU assembler, but can't get used to its symbols.
        And there is probably some assemblers specific for OS/2 (2.0 ?),
        but are they free?

        So, how can I make system call from within an assembly program?
        I do have a ABIOS reference book. Can I call those functions as
        people done to BIOS on a PC/DOS system?

        Will I absolutely need the bunch of books from 'IBM OS/2 2.0
        Technical Library'?

Ping
Newsgroups: comp.os.os2.programmer
From: alexande@borland.com (Mark Alexander)
Subject: Re: 2 simple HPFS questions
Organization: Borland International
Distribution: na
Date: Mon, 13 Apr 1992 17:36:09 GMT


Just to clarify on the "slash" issue: the OS/2 file systems (both DOS
and HPFS) allow you to to use either the forward or backward slash in
pathnames.  So you can do this in your program:

	DosOpen("/usr/include/stdio.h",...)

However, the standard command shell and other programs provided with
OS/2 treat the forward slash as a switch character, preventing you
from using it in pathnames.  But you can use the forward slash in
pathname parameters to other programs that allow it, such as editors
and compilers.

This also applies to DOS, except that in some old versions of DOS,
you could also change the switch character (to '-', for example).

The workaround is to buy an alternate shell (typically a clone of
the unix sh, csh, or ksh).  This allows you to use the beloved
forward slash (and makes it twice as hard to use the backslash).
From: dani@hp-ptp.ptp.hp.com (Danielle Cohen)
Date: Wed, 15 Apr 1992 00:03:10 GMT
Subject: OS/2 2.0 Active Desktop Question
Organization: HP Pacific Technology Park - Sunnyvale, Ca.
Newsgroups: comp.os.os2.programmer

Here's my problem -
  
    In OS/2 2.0 I want to add a program object to the desktop
programaticaly.  I know I can do this with a WinCreateObject
call, however it requires a location and I can't quite figure
out how to determine the active desktop.  The book file says
to use a constant which doesn't exist.  If I put "d:\DESKTOP"
(where D is my bootup drive) it works only on machines that
use the \DESKTOP as the active desktop, but for instance, on
my machine the desktop is in \DESKTOP1, so no object appears.
So how can I query for the active desktop.  I search thru
OS2.INI looking for an application/key that might tell me
but didn't see an obvious answer.

Anyways, any suggestions (solutions?!) would be appreciated.

Thanks,

   Danielle (dani@hpams0c.ptp.hp.com)
Newsgroups: comp.os.os2.programmer
From: sidney@borland.com (Sidney Markowitz)
Subject: Re: Using Borland C++ 3.0 in the DOS box
Keywords: Borland C++
Organization: Borland International
Date: Mon, 6 Apr 1992 22:38:56 GMT

In article <1992Apr3.181120.18932@odin.corp.sgi.com> evans@blue.wpd.sgi.com (Ed Evans) writes:
>>DPMI applications in the DOS box before version 6.304.  (There was a patch
>                                                         ------------------
>>for 177h though).  Both 304 and GA allow running BC++ 3.0 in a DOS box fine.
> ---------------
>Which patch was that for 177? And where were people getting the patch from?

Eric misspoke. The patch was a test driver that IBM sent us to see if
the fix that was going into 6.304 worked. It did work and it went into
6.304. As far as I know the patch was sent to us directly by the
developer who was fixing the problem just for that one test.

See my other posting in this thread for more complete information on
running BC++ 3.0 in the DOS box under GA.

 -- sidney markowitz <sidney@borland.com>
Newsgroups: comp.os.os2.programmer
Subject: Programming HELP using IPFC
From: Chris_Sullivan@kcbbs.gen.nz (Chris Sullivan)
Date: 15 Apr 92 17:57:23 GMT
Organization: Kappa Crucis Unix BBS, Auckland, New Zealand

Can anyone answer the folowing questions on programming 
help for OS/2 ?
 
(1)  When creating a .HLP file using the IPFC compiler, is there
any way of binding the .HLP into the .EXE.  I'd like to do away
with a seperate .HLP file but I'm not sure if this is possible.
 
(2)  When creating a .IPF source file for the IPFC compiler, is
there any way to use symbolic constants from a .H file instead of
literal constants?
From: bergstro@src.honeywell.com (Pete Bergstrom)
Newsgroups: comp.os.os2.programmer
Subject: Re: programmer's kit w/o the compiler?
Date: 11 Apr 92 12:38:12 GMT
Article-I.D.: data.9204111238.AA14601
Organization: Honeywell Systems & Research Center
To: comp.os.os2.programmer
Posted-Date: Sat, 11 Apr 92 07: 38:12 CDT
Received-Date: Sat, 11 Apr 92 07: 35:21 CDT

>	Can you order the IBM toolkits with educational discounts direct
>for IBM or do you have to tangle with your local computer store? Could
>the Developers toolkit be used with the Gnu compiler to make PM programs?
>If not what would be the minimum system needed to make PM programs? ( I
>think I can pass on the official IBM documentation. I have few books on
>programming PM under 1.1 and am willing to wait for third party books to
>come out). thanks for the help.
>

I just ftp'd the latest release of emx (the port of gnu compilers)
from the server in germany and the manuals and header files say that
the api calls are implemented for it.  

I can't test it out (still waiting for 2.0), but I'm sure it will be
on hobbes.nmsu.edu pretty soon.  The release is still 0.8, so you're
on your own.

If you're looking for an inexpensive way to get started, this may be
it.  I certainly hope to be able to contribute to the further
development of emx/gcc when I get my upgrade.

Pete
From: car@public.BTR.COM (Carlos Rimola-Sarti  car@btr.com)
Newsgroups: comp.os.os2.programmer
Subject: OS/2 Trap Pop-up
Date: 16 Apr 92 00:52:33 GMT
Organization: Connective Strategies, Inc. (CSI).  Mountain View, California


Most of you should be familiar with the "pop-up" screen that gets 
displayed when OS/2 detects an exception (e.g. Trap D).  My question is,
is there any way to disable these pop-ups?  The reason why I need this
disabled is that I am running a group of applications on an unattended
system (no keyboard or display).  In the unlikely (:-) case that one
of the applications fails I would like to detect it and restart it the
application.  I have the mechanism to detect/restart worked out.  The
problem is that if the application fails due to an exception, OS/2 is
now sitting there waiting for a keyboard press!

Any suggestions/questions would be appreciated.

+---------------------------------------+-----------------------------------+
| Carlos Rimola-Sarti                   |         email: rimola@csisdn.com  |
| Connective Strategies Inc.            |                      car@btr.com  |
| ISDN PRI Connectivity Group           |         phone:      415-903-2585  |
+---------------------------------------+-----------------------------------+
Newsgroups: comp.os.os2.programmer
From: rcain@netcom.com (Robert Cain)
Subject: Re: com.sys and vcom.sys parameters?
Date: Mon, 13 Apr 92 04:10:17 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

tanith@csd4.csd.uwm.edu (Michael D Kretzer) writes:
: From article <xfwjq4f.rcain@netcom.com>, by rcain@netcom.com (Robert Cain):
: > How do you tell com.sys and vcom.sys that there is a com3 on irq7 at
: > address 3e8?
: 
: Add the following to the COM driver lines in your CONFIG.SYS.  IRQ 7 
: might cause problems because OS/2 uses IRQ 7 for the LPT1 port (be sure
: not to use COM3 when printing, or vice-versa):
: 
: DEVICE=C:\OS2\COM.SYS (3,3E8,7)
: DEVICE=C:\OS2\MDOS\VCOM.SYS (3,3E8,7)

Whew, you scared me there for a moment.  My lpt1 is jumpered for irq5 and
my heart sunk but I hit print screen to see and lo and behold my deskjet
is printing the prettiest graphics rendition of this window I could want
at one swipe every 30 seconds. (.023 ppm)  I really only wanted the text
but hey.  I wonder if I am seeing some subtle irq problem but my modem is
working just fine.  Are the print drivers really that slow for graphics?
-- 
Bob Cain    rcain@netcom.com   408-358-2007

"There are some strings.  They're just not attached."
                                                    Victoria Roberts
From: leblanc@eecg.toronto.edu (Marcel LeBlanc)
Newsgroups: comp.os.os2.programmer
Subject: 2 simple HPFS questions
Summary: Does it do links or allow forward slash "/"
Keywords: links?
Date: 12 Apr 92 05:56:29 GMT
Distribution: na


Real simple questions for any of you OS/2 users.

Does HPFS allow the use of forward slash to delimit directory names in a
path?  I mean, can I type "here/down/there/file.mine" or do I have to type
"here\down\there\file.mine"?  Also, do I use an initial "/" (or "\") to
indicate that the path is relative to root?

Also, are softlinks supported?  Across volumes?  Are hard links available?

That's it!

In case you're interested:
I don't use MS-DOS, and I've never used Windows.  I'm considering OS/2
because it has pre-emptive multitasking at a reasonable price (finally).
Until OS/2 2.0, the only supported OS that has the features I've grown
accustomed to (pre-emptive, GUI, low cost, ...) was AmigaDOS, which I've
used since 1987.  An OS/2 machine may now provide a better development
environment at a lower cost than an AmigaDOS machine.
(now you know! :)

Marcel A. LeBlanc  --  Electrical Eng. Computer Group, Univ. of Toronto
-----------------------------------------------------------------------
leblanc@eecg.toronto.edu		else: uunet!utcsri!eecg!leblanc
Newsgroups: comp.os.os2.programmer
From: tanith@csd4.csd.uwm.edu (Michael D Kretzer)
Subject: Re: writing apps in OS/2 2.0
Originator: tanith@csd4.csd.uwm.edu
Reply-To: tanith@csd4.csd.uwm.edu
Organization: University of Wisconsin - Milwaukee
Date: Fri, 17 Apr 1992 02:40:20 GMT

From article <92106.174619IO70935@MAINE.MAINE.EDU>, by IO70935@MAINE.MAINE.EDU:
>      Is what is included in the MSC compiler sufficient for basic, protected
>      mode OS/2 development (I realize no PM stuff is included) -  If not,
>      what else will I need?????

MSC 6.0 includes libraries/header files for both PM and text mode apps
(albeit for OS/2 1.2 apps), by the way.  Unfortunately, you have to pay
extra for the documentation (via the OS/2 SDK).  I wouldn't recommend
purchasing the Microsoft SDK (for obvious reasons), but you can pick
up an IBM OS/2 1.3 SDK rather cheaply (as a matter of fact I have one to
sell).  Since you will have to purchase a 32-bit compiler in order to
create 32-bit applications, you can just stick with 1.x documentation/tools
because MSC 6.0 is not a 32-bit compiler.  These 16-bit programs will run
fine under OS/2 2.0 (and 1.x) unmodified...
From: balesej@ucunix.san.uc.edu (Eric J Bales)
Newsgroups: comp.os.os2.programmer
Subject: detecting CD on COM1
Date: 7 Apr 92 23:45:19 GMT
Organization: University of Cincinnati

Does anyone have a small piece of code that monitors a com port for
Carrier Detect?  Preferably something in REXX or compilable using the
EMX/GCC utilities...  Thanks.

-- 
at098@cleveland.freenet.edu                        -Eric Kirkbride-
balesej@ucunix.san.uc.edu
		        -The second dolphin-
Dolphins. Soon you will be one of us, and then you will understand.
From: gulcu@masg1.epfl.ch (Ceki Gulcu)
Newsgroups: comp.os.os2.programmer
Subject: "Killing" child windows
Date: 11 Apr 92 19:23:27 GMT
Organization: Ecole Polytechnique Federale de Lausanne

I'm currently porting a character-mode based OS/2 application to PM. The
program in question is DoublesFinder. It finds files having the same name
(thus, probably redundant) across drives. The character based form did not
have shoot&delete capabilty, the PM version will. 

This is what I do:

A clientWindow is created using WinCreateStdWindow. Inside this window
files having the same name are displayed (one file per line). Then a number
of child windows are created. These child windows are just checkboxes. Each
checkbox is displayed next to a file name. When a checkbox is checked this
means that the file next to it will be deleted (at some future time).

Here is the question:

The number of child windows should correspond to the number of files 
displayed. Since the number of files displayed changes as the size of the
client window changes, I should be able to create/kill child windows as
necessary. Creating is no problem, but I cannot "kill" any checkboxes.

Can you help me on this? 

GULCU Ceki

ps: I've a workaround which is far from being elegant: I create a large
    number of checkboxes (larger then the number of files that can
    ever be displayed i.e > 200 ). The checkboxes which cannot be displayed
    are just clipped. This wastes memory. 
Newsgroups: comp.os.os2.programmer
From: mcdonald@aries.scs.uiuc.edu (Doug McDonald)
Subject: Programming OS/2
Organization: University of Illinois at Urbana
Date: Wed, 8 Apr 1992 14:14:20 GMT


Now that OS/2 is now, officially, unequivocally, vaporware, how
does one program it? What does a set of the necessary tools (i.e.
C and Fortran compilers and an assembler and th enecessary linker and
libraries) cost? Where does one get them?

Also, I would need a free set of TCP-IP software that will replace
NCSA Telnet and NCSA FTP and a good NNTP News reader (good: must
not store any news locally, an interface like Notes woiuld be best,
not some klunky full screen system like some I have seen. )

Doug McDonald


Newsgroups: comp.os.os2.programmer