HDTenEightyP/NetNews huggingface dataset:
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: DOS Box Programming
Date: 18 Dec 92 22:01:58 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Dec17.230826.5577@midway.uchicago.edu> sip1@midway.uchicago.edu writes:
>In article <1992Dec14.180704.29564@wicat.com> kevin@wicat.com (Kevin Vigor) writes:
>>>   1.  Is there a way to detect if a programme is operation in OS/2 2.0's
>>>       dos box ?
>
>How about looking for an OS/2 2.x-specific file that will always be in
>the same location?

Like what?  Any file you can name will also be present if the user is
running straight DOS on a dual-boot machine.  All this can tell you is
whether or not OS/2 was installed.  It won't tell you if you're
running OS/2 or not.

The dos version number will tell you if you're running the emulator
(look for version 10 or greater, or call "ver" and note that it will
say "OS/2..."), but I can think of know way to tell a VMB from a
normal DOS boot.  Unless you want to play around with protected mode.

What about this:  Detect the CPU type.  If it's a 386, try to go into
protected mode.  If it fails, you're in a VMB - probably OS/2, but
Windows 3.1 may also cause this effect.  Of course, there are standard
ways to check if you're running Windows.

-- 
  |)  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: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: Monochrome card in OS/2 DOS VDM work okay?
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Distribution: usa
Date: Thu, 17 Dec 1992 23:13:28 GMT

In article <1992Dec17.043335.9041@grebyn.com> richk@grebyn.com (Richard Krehbiel) writes:
>I'd like to get a monochrome (text) card and monitor, and use it for
>two-screen DOS program debugging.  I think this should work okay, but
>I thought I'd ask first.

As far as I know, OK.

-- 
Timothy F. Sipples      | Read the OS/2 FAQ List 2.0h, 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.]
Newsgroups: comp.os.os2.programmer
From: sthiagar@bronze.ucs.indiana.edu (sivasailam thiagarajan)
Subject: Free 256-color BMP viewer w/source now on Hobbes
Organization: Indiana University
Date: Sun, 20 Dec 1992 02:26:28 GMT

For anyone who's interested, I just posted fBMP to Hobbes. This is a
freeware 256-color BMP viewer that uses Palette Manager to get the
colors right; it has been tested (and found to work) on all known
256-color platforms that support Palette Manager (namely the new
32-bit, 256-color ET4000, XGA, and Trident screen drivers). Full
source code is included, letting you modify and extend the program to
your heart's desire. Enjoy.

The file fBMP.ZIP is currently in pub/uploads in ftp-os2.nmsu.edu. I
have requested that it eventually be moved to pub/os2/2.0/programming.

Raja Thiagarajan
(sthiagar@bronze.ucs.indiana.edu)
From: d9mikael@dtek.chalmers.se (Mikael Wahlgren)
Newsgroups: comp.os.os2.programmer
Subject: Re: serial communication question
Date: 12 Dec 92 10:18:47 GMT
Organization: Chalmers University of Technology, Gothenburg Sweden

hb@vpnet.chi.il.us (hank barta) writes:

>:      Can anyone tell me if OS/2 uses interrupt-driven serial
>: port buffering for COM1 & COM2?  I can't find that particular
>: information anywhere, it seems.

>I believe it does. (Most any multitasker has to use interrupts or
>_considerable_ hardware buffering.) I also have a deeply held 
>belief that it supports the 16550 buffered UARTs.

Yes, the serial communications device driver in OS/2 certainly uses interrupts
for its work.  It also supports 16550 buffered UARTs.

Mikael Wahlgren
From: marcino@sys6626.bison.mb.ca (Paul Marcino)
Newsgroups: comp.os.os2.programmer
Subject: Re: Zortech C++
Date: Fri, 11 Dec 92 21:04:20 CST
Organization: System 6626 BBS, Winnipeg Manitoba Canada

haug@zesi.do.open.de (Haug Buerger) writes:

> 
> Hi,
> 
> has anybody a mail address of Zortech ?
> I need a compiler for OS/2 and have not the time to wait
> years for an update. Is there any announcement for an OS/2 version
> of the compiler?
Zortech is now owned by Symantec. 10201 Torre Avenue, Cupertino CA, USA 
95014-2132 Telephone 408 253 9600 Fax 408 252 4694
 
Symantec was at the Winnipeg PC User group on Dec 10, mostly to show
some Windows/Dos products but the rep talked about Norton Commander for 
OS/2 and Zortech C++ for OS/2 2.0. NC is shipping and Zortech C++ would 
be released in three weeks - in fact he even had a copy of it with him,
in the shrink wrap - it was a pretty small package - definately no API 
reference on paper. He mentioned that he thought that the upgrade price 
would be in the $300CDN range. He did not state if this price would 
offered for upgrades from other compilers.
From: lauer@mpi-sb.mpg.de (Thomas Lauer)
Newsgroups: comp.os.os2.programmer
Subject: Re: COBOL for OS/2 2.0
Date: 16 Dec 92 11:59:20 GMT
Reply-To: lauer@mpi-sb.mpg.de
Organization: Max-Planck Institut fuer Informatik

What's Cobol ? Can I eat that or is it something for a computer?

Ah, I remember my grandpa told me something about cobol. You can write
big programs which do next to nothing.

-thomas

Newsgroups: comp.os.os2.programmer
From: wu@mdd.comm.mot.com (Philip Wu)
Subject: Re: Zortech C++
Organization: Motorola - Mobile Data Division; Richmond, BC
Distribution: na
Date: Fri, 11 Dec 1992 17:29:14 GMT

>I received an upgrade copy of the Zortech C++ compiler for OS/2 2.0. It
>generates code for OS/2 2.0 (32 bit), OS/2 1.x (16 bit) and Dos. It
>does not have MS-Windows support in the box. There is no debugger. It
>connects to WF/2. It has support for templates.
> 
>I have not yet done more than install it and test compile a very small
>program, so I have no comparison information.
> 
>I ordered it near the end of October. It just began shipping.

I read on Compuserve that they are reducing the price of upgrading
from Zortech C++ for Dos/Windows to $149, down from $249, still pretty`
expensive though.

Phil
From: AXIOM@cup.portal.com (Lowell D Kaufman)
Newsgroups: comp.os.os2.programmer
Subject: calling os2 from win/os2 query
Date: Tue, 15 Dec 92 09:01:33 PST
Organization: The Portal System (TM)

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

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

Any help is appreciated.
Newsgroups: comp.os.os2.programmer
From: kevin@wicat.com (Kevin Vigor)
Subject: Re: DOS Box Programming
Organization: WICAT Systems
Date: Mon, 14 Dec 1992 18:07:04 GMT

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 ?

A question I'd like an answer to myself; however, at the moment, I am just 
checking the DOS version; if the major version is 20 or higher, I assume
I'm dealing with OS/2 2.x or better.

>   2.  Is there a way a programme, running in OS/2 2.0's DOS box, can release
>       clock cycles to OS/2 ?

Call interrupt 2F (hex) with AX set to 1680 (hex). The call returns with
AL set to zero on sucess and 80 on failure. N.B.: this same call works
in a Windows 3.x DOS box and under DPMI.

>   3.  What happens when a programme hooks onto the serial communication
>       inturrupt as provided by DOS INT 21h ? Will a interrupt driven
>       serial communication driver written this way be efficient in the
>       DOS box of OS/2 ?

Don't know, but as it's completely inefficient under DOS, I doubt it'll be
any better under OS/2 DOS box.

-- 
		Peace & PopTarts, 
			Kevin
Email to the reply address will almost certainly bounce; use
72500.3705@compuserve.com
Newsgroups: comp.os.os2.programmer
From: dlcogswe@vela.acs.oakland.edu (Dan Cogswell)
Subject: Palette question
Organization: Oakland University, Rochester MI.
Date: Sun, 13 Dec 1992 06:27:26 GMT

I'm a bit confused about the way palettes work with PM.  Can I define a
(near) 256 color palette and use all these distinct colors for my app?
I would like 256 shades of gray.  A code fragment would be appreciated!

-- 
Dan Cogswell               Or as we say in Michigan:  "Dee-troit"
From: utter@acsu.buffalo.edu (William M. Utter)
Newsgroups: comp.os.os2.programmer
Subject: Com Port routines for OS/2 2.0
Date: 13 Dec 92 18:26:32 GMT
Organization: UB


	Does anyone know of any good Com Port routines for OS/2 2.0..
Thanks.


-- 
-----
Bill Utter    utter.acsu.buffalo.edu
From: Mat.Kramer@f115.n282.z1.tdkt.kksys.com (Mat Kramer)
Sender: FredGate@tdkt.kksys.com
Newsgroups: comp.os.os2.programmer
Subject: EPM Tabs Setting
Date: Fri, 11 Dec 1992 23:07:00 -0600

I'm having trouble changing the default Tabs setting in EPM 5.51.
I go to the Options-Preferences-Settings notebook and set Tabs to 3,
but when I exit the program and restart EPM, tabs are set back to
the original default, even though the Settings page still says 3 (and
so does the EPM.INI file).  I also tried putting a "tabs 3" line in
a MYCNF.E file.  No luck.

Does anyone know the solution to this problem?  Also, is there an email
address where I can send EPM bugs and suggestions?

Thanks
.

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


 * Origin: (1:282/115)
Newsgroups: comp.os.os2.programmer
Subject: Re: 11/92 PDK on CD-ROM...
From: frmorgan@acs.harding.edu (Ronnie Morgan)
Date: 13 Dec 92 15:05:59 -0500
Reply-To: frmorgan@acs.harding.edu
Organization: Harding University

In article <joiner.724209068@exa>, joiner@exa.cs.umn.edu (Jay K. Joiner) writes:
>I would recommend reformatting the installation partition to get a clean
>install.  I've created one partition simply to hold my OS/2 system files
>which I can reformat whenever I need to install a new version of the OS.
>You can keep your data and applications on other partitions that don't
>get touched by the system install.
>

I was afraid of that!  The problem is, the HD only has one partition right now. 
And I can't format it because of other data that is on the disk.  I suppose
what I'll have to do is back up the disk and re-partition and re-format the
disk.  I was hoping to avoid that, but, you gotta do what you gotta do!!

Thanks for your help!!

Ronnie Morgan
Newsgroups: comp.os.os2.programmer
From: margoli@watson.ibm.com (Larry Margolis)
Subject: Re: adding TeX support to EPM
Date: Thu, 17 Dec 1992 19:16:38 GMT
News-Software: IBM OS/2 PM RN (NR/2) v0.16f by O. Vishnepolsky and R. Rogers
Reply-To: margoli@watson.IBM.com
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: The Village Waterbed

In <1gp06aINN9b1@gap.caltech.edu> hacker@cco.caltech.edu (Jonathan Bruce Hacker) writes:
>
>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.

That's related to the Script language, used by DCF (Document Composition
Facility, on VM).  MY_SCRIPT_FILE_TYPE just refers to an additional
filetype that will be assumed to contain SCRIPT and GML markup.  You would
probably be best off just modifying EPMLEX.E to skip over words with '\'
as the first character.  Look in the proof2 routine where it calls lexam
to verify the word.
--
Larry Margolis, MARGOLI@YKTVMV (Bitnet), margoli@watson.IBM.com (Internet)
Newsgroups: comp.os.os2.programmer
From: kevin@wicat.com (Kevin Vigor)
Subject: Re: DOS Box Programming
Organization: WICAT Systems
Date: Fri, 18 Dec 1992 18:54:46 GMT

sip1@ellis.uchicago.edu (Timothy F. Sipples) writes:

>In article <1992Dec14.180704.29564@wicat.com> kevin@wicat.com (Kevin Vigor) writes:
>>>   1.  Is there a way to detect if a programme is operation in OS/2 2.0's
>>>       dos box ?
>>A question I'd like an answer to myself; however, at the moment, I am just 
>>checking the DOS version; if the major version is 20 or higher, I assume
>>I'm dealing with OS/2 2.x or better.

>How about looking for an OS/2 2.x-specific file that will always be in
>the same location?

Certainly possible, but this seems far more likely to change in a future 
release than does the DOS version. Of course, it's easy to fake out the
DOS version check and harder to remove OS2LDR or somesuch.

Interestingly enough, I have reveived the PDK since this thread started, and
the only information I can find relating to programming the DOS box is about
using named pipes to communicate between a DOS session and a OS/2 session. I
can find absolutely no mention of time-slicing (though the call I originally
mentioned does work), nor anything else of interest. I sincerely hope this
information will be documented in a later version (preferably very soon!).

-- 
		Peace & PopTarts, 
			Kevin
Email to the reply address will almost certainly bounce; use
72500.3705@compuserve.com
Newsgroups: comp.os.os2.programmer
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: Some OS Q's.
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Date: Sun, 13 Dec 1992 00:09:15 GMT

In article <sal8.247.724202722@po.cwru.edu> sal8@po.cwru.edu (Steve Luzynski) writes:
>>7. Where is the source code for InfoZip's stuff?
>Never seen it myself...

Should be available from the same site you get Info-Zip's Zip/UnZip.
Check wuarchive.wustl.edu via anonymous ftp if you can't find it
anywhere else.

>>Explaination:  I want to write a HD backup program for os2 which will
>>operate under either FAT or HPFS and use the TurboVision IDE style
>>interface. (if you know how I might implement the interface under gcc or
>>something else let me know)  Anyway, I plan to develope under BCC and
>>run it as a DOS app under OS2.  Is this possible? Feasible?
>Should work...you do realize that such a beastie couldn't access the files 
>OS/2 will have locked while it's running...that means the user would have to 
>boot from a floppy.

That's not correct.  OS/2-aware backup software can back up all files
on the hard disk provided that all other running tasks (which _may_
use locked files) are shut down.  (To read the INI files, you use the
API services -- you don't do a straight copy.)  Sytos, for example,
does exactly that.  (You can also introduce some additional logic
which warns the user of any locked files on the system and either
retries for a set period of time or invites the user to shut down the
running application.)

-- 
Timothy F. Sipples      | Read the OS/2 FAQ List 2.0h, 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: steveh@goanna.cs.rmit.oz.au (Steven Hayes)
Newsgroups: comp.os.os2.programmer
Subject: malloc()ing huge (> 3 megabyte) data structures
Date: 15 Dec 92 13:55:52 GMT
Organization: Comp Sci, RMIT, Melbourne, Australia

Hi people,

I'm working on some neural net software using ICC under OS/2 2.0. I need
to be able to allocate HUGE arrays, around the 3 megabyte mark, and I'm 
using an 8 megabyte machine. Thank god for virtual memory ;-)

Ok, so I malloc() the array(s), and everything _appears_ to be fine. I check
that malloc returns non-NULL values, etc, and it _seems_ that everything is
fine. Unfortunately, I'm getting floating point underflow errors when I
start performing operations on the arrays. The underflow errors don't seem
to occur in the same place (IPMD tells me this). I don't understand why this
is happening. Are there bugs in the VM management?

The reason why I think there are some virtual memory and/or compiler bugs
is that my code works _beautifully_ for smallish neural networks (< 2500
nodes and 10000 weights, in NN speak). But start asking the _same_ binary
code to build and train bigger networks results in underflow.

I'm using malloc() instead of DosAllocMem() to retain UNIX portability. I'll
try running the code on a UNIX workstation tomorrow and we'll see what
happens.

If you have any experiences with allocating large chunks of memory please
mail me or follow-up. I'd be most interested to hear from you.

Steve
-- 
   Steven Hayes                                    |  steveh@rmit.edu.au
   Royal Melbourne Institute of Technology (RMIT)  |  +61 3 660-2693
Newsgroups: comp.os.os2.programmer
Subject: 11/92 PDK on CD-ROM...
From: frmorgan@acs.harding.edu (Ronnie Morgan)
Date: 12 Dec 92 16:38:35 -0500
Reply-To: frmorgan@acs.harding.edu
Organization: Harding University

I recently recieved the 11/92 version of the PDK and installed it with out any
problems.  But, I messed it up some how and decided to erase it and reinstall
it on my HD.  The problem is, it will not go through the whole install routine
without locking up.  Is there a hidden file that I am missing that is causing 
the install routine to lock up?  

Any help would be appreciated!!

Ronnie Morgan
frmorgan@harding.edu
Newsgroups: comp.os.os2.programmer
From: cnadler@vnet.ibm.com (Cliff Nadler)
Subject: Re: Online help, API reference
Date: Tue, 15 Dec 92 16:14:09 GMT
News-Software: IBM OS/2 PM RN (NR/2) v0.15 by O. Vishnepolsky and R. Rogers
Reply-To: cnadler@vnet.ibm.com (Cliff Nadler)
Organization: IBM T. J. Watson Research

In <1992Dec15.085659.248@vulcan.resmel.bhp.com.au> paulg@a1.resmel.bhp.com.au (Paul Gallagher) writes:
>Hi,
>
>I've spent some time exploring the online books, INF files etc,
>and I've set EPM up for online help, but (forgive me if there's
>an obvious answer to this question)... where the hell do you
>"go" to get comprehensive online API help? 
>
>Is a complete API reference available on-line? If not, what are
>some good alternative sources? (Am I missing something because
>IBM only gave me the CDs and not the printed docs?)
>

The on-line documents should be complete. What do you think is missing?

Cliff Nadler
IBM Federal Systems Company

Note: This post represents the views of the poster, not those of IBM or the
      IBM Federal Systems Company
Newsgroups: comp.os.os2.programmer
From: boh@fraser.sfu.ca (Changhao Boh)
Subject: Re: DOS Box Programming
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Mon, 14 Dec 1992 22:19:25 GMT

kevin@wicat.com (Kevin Vigor) writes:

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

>A question I'd like an answer to myself; however, at the moment, I am just 
>checking the DOS version; if the major version is 20 or higher, I assume
>I'm dealing with OS/2 2.x or better.

>>   2.  Is there a way a programme, running in OS/2 2.0's DOS box, can release
>>       clock cycles to OS/2 ?

>Call interrupt 2F (hex) with AX set to 1680 (hex). The call returns with
>AL set to zero on sucess and 80 on failure. N.B.: this same call works
>in a Windows 3.x DOS box and under DPMI.

If the clock cycles are already released, why a return value in AL ?
Hmm... Writting this, I've just answered my own question, AL is returned
when release failed... {:-]

>>   3.  What happens when a programme hooks onto the serial communication
>>       inturrupt as provided by DOS INT 21h ? Will a interrupt driven
>>       serial communication driver written this way be efficient in the
>>       DOS box of OS/2 ?

>Don't know, but as it's completely inefficient under DOS, I doubt it'll be
>any better under OS/2 DOS box.

Why is this ineffecient under DOS ?  I though making a communication driver
interrupt driven is the most effecient way of coding, regardless of OS.

I've another question,

  Can a programme in DOS box utilises the services provided by VCOM.SYS and
  COM.SYS ?

>-- 
>		Peace & PopTarts, 
>			Kevin
>Email to the reply address will almost certainly bounce; use
>72500.3705@compuserve.com

Thanks for replying.

Good Health.

Changhao
boh@sfu.ca
Newsgroups: comp.os.os2.programmer
From: bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor)
Subject: Re: How does monitor.exe get its process info?
Organization: /usr/local/lib/news/organization
Date: Sun, 13 Dec 1992 14:29:34 GMT

In article <1geda5INN5qe@flop.ENGR.ORST.EDU> murrayk@prism.CS.ORST.EDU (the Dodger) writes:

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


I tested this program with the Whetstone benchmark: It gave about 70% idle
time but the program gave the right whetstone. I guess there is something
wrong with MONITOR.EXE.

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