HDTenEightyP/NetNews huggingface dataset:
From: tnt@netcom.com (Terry Turner)
Subject: ipmd: debugger question.
Date: Wed, 15 Apr 92 03:29:40 GMT
Organization: Watch the Skies
Distribution: comp

how does one examine the call stack--the list of procedures 
so far called? i am assuming that there is a way to do this
but have not been able to find it.

my program is crashing inside a system call and i would 
like to find out from which of my procedures i am making
this system call. as you recall, in codeview Alt-C pulled 
down a convenient list of procedures. i hope ipmd has an 
equivalent function.

-- 
terry
	tnt@netcom.com
Organization: Ege University - Computing Center
Date: Tuesday, 14 Apr 1992 14:00:07 TUR
From: Bahri Bora BALI AG <OPRJ36@TREARN.BITNET>
Newsgroups: comp.os.os2.programmer
Subject: Who can send me a Printer Driver Sample code?

Hello, I need a Printer Driver Sample code in any language.
If anyone can send, I would appreciate.. Thanx in advance..

-Bahri Bora BALI
Newsgroups: comp.os.os2.programmer
From: rafetmad@cheshire.oxy.edu (David R. Giller)
Subject: Re: WinProgrammer's ?'s on WinOS/2
Organization: Occidental College, Los Angeles, CA 90041 USA.
Distribution: comp
Date: Mon, 13 Apr 1992 19:44:54 GMT

In article <1609@tuura.UUCP> risto@tuura.UUCP (Risto Lankinen) writes:
>Hi!
>I'm considering OS/2 2.0 as a programming environment to write applications
>for Windows 3.0/3.1 .

That's a good system, which I have used.

>Specifically:
>  - Do the Windows apps and OS/2 apps share the same message-passing system?
>    Can I '{Send|Post}Message()' to an OS/2 app from a Windows app?

No.  The message structure is much different.

>  - Are the Windows DLL's truly shared (ie. loaded just once even for multi-
>    ple clients)?  I've got colliding info on this from different sources...

Yes.  Code segments are shared, data segments are either shared or
local, depending on what the DLL specifies.

>  - Can an OS/2 app call a Windows DLL ?  How about the other way?

No.  DLLs are still DOS-dependant.  And OS/2 DLLs are dependant on running
under OS/2 protected mode, which Windows programs can't.

>  - I've currently set up dual boot: MS-DOS 5.0 & OS/2 1.2 .  Can I install
>    the 2.0 on top of the 1.2 without breaking my dual boot functionality?

I don't know about installing on top of 1.2 (I assume so) but dual-boot
is still there.  In addition, you might want to try out Boot Manager.
It is much nicer to use than Dual Boot.

>An objective voice-of-experience is what *might* win a *single* convert, yet
>I'm still planning to write for Windows users only.  So *PLEASE* don't tell
>me about 'the advantages of OS/2' - I've heard of them up to the point I'm
>fed up with.

If you want to use OS/2 for Windows development, you already know the
advantages.

Things to look out for:
Use Windows debugging tools in a full-screen Windows session.
Some things are broken in BCC 3.0 under OS/2 DPMI.  Read the 2.0 README
(I can send it if you want).
OS/2 and Windows use lots of the same technology, but nothing is
compatible.  Windows was designed under real mode, and OS/2 was designed
under protected, and you can't unfortunately trust either out of their
realms.  Besides, the thinking procedures and structures are different...
Well, you just can't. :->

-Dave
-- 
David Giller, Box 134 | Q: How many Oregonians does it take to screw in a light
Occidental College    | bulb?  A: Three.  One to replace the bulb, and two to
1600 Campus Road      | fend off all the Californians trying to share the
Los Angeles, CA 90041 | experience. ---------------------------rafetmad@oxy.edu
Newsgroups: comp.os.os2.programmer
From: adnan@caesar.rice.edu (Dr. Sarmad Adnan)
Subject: Re: Programming OS/2
Organization: Rice University
Date: Wed, 8 Apr 1992 22:26:11 GMT


>Excerpts from netnews.comp.os.os2.programmer: 8-Apr-92 Programming OS/2
>by Doug McDonald@aries.scs.                                            
>> Now that OS/2 is now, officially, unequivocally, vaporware, how      
>> does one program it?                                                 
>    How does one program in vaporware???                               
>Ke-Wei                                                                 

Using virtual memory, and virtual disk on a virtual machine of course. :)

-adnan
--

                  Sarmad Adnan (adnan@rice.edu)
Newsgroups: comp.os.os2.programmer
From: rcain@netcom.com (Robert Cain)
Subject: Printer Driver Example?
Date: Tue, 14 Apr 92 01:33:22 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

Hello IBMers. I would like to get the source for a sample PM printer driver.
Is there any chance?  Where would I start?  Who could I call?  This could
help me a bunch in getting a real neat OS/2 2.0 product to market.

Thanks,

Bob
-- 
Bob Cain    rcain@netcom.com   408-358-2007

"There are some strings.  They're just not attached."
                                                    Victoria Roberts
Organization: Ege University - Computing Center
Date: Monday, 13 Apr 1992 13:49:30 TUR
From: Bahri Bora BALI AG <OPRJ36@TREARN.BITNET>
Newsgroups: comp.os.os2.programmer
Subject: How can I create my own icons?

Hello..
I want to learn how to creat an icon.. Is there a
utility to create it? What is the format of a file
with extension 'ICO' ? Thank you for your interest.

Kind regards..

-Bahri Bora BALI
 Ege University
Newsgroups: comp.os.os2.programmer
From: rcain@netcom.com (Robert Cain)
Subject: Re: com.sys and vcom.sys parameters?
Date: Mon, 13 Apr 92 20:51:00 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

I was dead wrong.  Both my lpt1 and my modem were on irq7.  Amazing that
they worked at all!  I don't know if this is pure luck or tribute to OS/2.
The comm session showed absolutely no evidence of a problem and the printer
was just slow.  After juggling irq's to give everybody their own, the printer
was full speed and I was even able to run my Sytos tape software from a
Dos window.  Problems there though.  It kept reporting files it couldn't
open. INCLUDING "EA DATA. SF" OF COURSE!   AAAAARRRRGGGHHHH!
-- 
Bob Cain    rcain@netcom.com   408-358-2007

"There are some strings.  They're just not attached."
                                                    Victoria Roberts
Newsgroups: comp.os.os2.programmer
From: rcain@netcom.com (Robert Cain)
Subject: Re: Performance topics
Date: Wed, 08 Apr 92 04:27:08 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

David, in general any serially reused resource should, given a design choice,
use object locks that threads can block on for serialization of modifications
rather than critical sections.  Critical sections can have very bizzare
effects on performance.  Usually when porting code, one is left with little
choice but critical sections because locks must be a careful part of a design
whereas it is pretty easy to just say "leave me alone" instead. (ask tnt)

Bob

-- 
Bob Cain    rcain@netcom.com   408-358-2007

"There are some strings.  They're just not attached."
                                                    Victoria Roberts
From: wtracey@VNET.IBM.COM (Bill Tracey)
Newsgroups: comp.os.os2.programmer
Subject: Thread support under C++, shared address space
Date: 10 Apr 92 11:47:54 GMT
Reply-To: wtracey@vnet.ibm.com
Organization: IBM - Bethesda MD.

In <1992Apr9.220130.54363@cc.usu.edu> slhpv@cc.usu.edu writes:
>
>Could anyone tell me how well OS/2 threads are supported by various
>compilers, and to what level the threads do data/code sharing?
>
Threads under OS/2 share data and code quite well.  Under OS/2 all
threads within a process (a process is composed of one or more
threads) share the same address space, so any data within the
process is accessible by all threads in the process.  Code is
shared by all process in the system using the code.

>I need to use C++ with real good built in support for concurrent
>processes (semaphores, moniters, etc.) as well as shared address space
>and was wondering how well OS/2 2.0 will compete in this area.
>
I do not know what built in support the C++ compilers out there
will have for semaphores etc, but the OS/2 API (Application
Programming Interfaces) has full support for semaphores and
shared memory areas.  The OS/2 API functions should be easily
callable from a C++ program.

Hope this helps,

Bill Tracey
Newsgroups: comp.os.os2.programmer
From: larrys@watson.ibm.com (Larry Salomon, Jr.)
Subject: Re: Building HELP with IPFC
Date: Wed, 15 Apr 1992 15:08:18 GMT
News-Software: NewsKit 1.2 - LaMail
Reply-To: larrys@watson.ibm.com
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM Research

In <65090.105921792@kcbbs.gen.nz>, Chris_Sullivan@kcbbs.gen.nz (Chris Sullivan) writes:
>
>
>(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.

You couldn't in 1.3 and I don't think this has changed for 2.0.

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

Not that I know of.  You could always use the C preprocessor to do this,
by having it generate a "preprocessed source" file.  However, you could
run into problems.  For instance, with Microsoft's C compiler:

:h1 res=EXTHLP1.Extended help for Fubar

the compiler substitutes "1" for "EXTHLP1" and then it tries to
interpret the resulting "1.Ex" as a floating point number (WHY???  THIS
IS A PREPROCESSOR!!!), which results in an error, since 'x' is not a
valid digit.

For this example, the work-around is to change it to:

:h1 res=EXTHLP1 id="DUMMYID1".Extended help for Fubar

Cheers,
Larry Salomon, Jr. (aka 'Q')            LARRYS@YKTVMV.BITNET
OS/2 Applications and Tools             larrys@watson.ibm.com
IBM T.J. Watson Research Center         larrys@ibmman.watson.ibm.com
Yorktown Heights, NY                    larrys@ibmman2.watson.ibm.com

Disclaimer:  The statements and/or opinions stated above are strictly my
own and do not reflect the views of my employer.  Additionally, I have a
reputation for being obnoxious, so don't take any personal attacks too
seriously.
Newsgroups: comp.os.os2.programmer
From: frank@unixg.ubc.ca (Murray Frank)
Subject: Request for a Utility
Keywords:  OS/2 DOS
Organization: University of British Columbia, Vancouver, B.C., Canada
Date: Tue, 14 Apr 1992 22:18:01 GMT

This is a "simple" request/suggestion for a utility. 

Some DOS based programs will not run under os/2. This is presumably
the motivation for having dual boot. Now the trouble is that DOS 5
apparently will not handle HPFS, while os/2 on many systems runs
better using HPFS. In order to allow all of us to fully migrate it
would be very nice if someone would write a utility that would allow
real DOS to use HPFS. 

I have no sense of the magnitude of the programming task involved. If
it is too big, perhaps IBM itself might wish to undertake the task.
The existence of such a utility would enhance the complete migration
to an os/2 optimal environment.

Newsgroups: comp.os.os2.programmer
From: tnt@netcom.com (Terry Turner)
Subject: Re: ipmd: debugger question.
Date: Wed, 15 Apr 92 17:49:33 GMT
Organization: Watch the Skies

In article <9204151139.AA16458@ucbvax.Berkeley.EDU> pebly@VNET.IBM.COM (Bob Pebly) writes:


   In <TNT.92Apr14192940@netcom.com> Terry Turner writes:
   >how does one examine the call stack--the list of procedures
   >so far called? i am assuming that there is a way to do this
   >but have not been able to find it.

   Under the Thread pulldown, select Show and then Stack.  Is that what you
   are looking for?

yes it is, thanks. i tried it when my program crashed and it showed 
only one level. from that i mistakenly assumed that "show stack" was
not the function it turns out to be. obviously my stack has been 
trashed.

thanks for the help.


-- 
terry
	tnt@netcom.com
From: ballard@ucs.ubc.ca (Alan Ballard)
Newsgroups: comp.os.os2.programmer
Subject: Re: Tape Backup programs?
Date: 6 Apr 92 16:28:21 GMT
Article-I.D.: stilton.ballard.702577701
Organization: University of British Columbia, Vancouver, B.C., Canada

In <2APR199217395924@lims01.lerc.nasa.gov> smbrush@lims01.lerc.nasa.gov (Andy Brush @Sverdrup) writes:

>Does anyone here have experience with Irwin EZTape-PM?

I have this.  A nice product, but currently doesn't work under OS/2
2.  Hopefully, they'll have a fix before too much longer.

>It seems as if affordable OS/2 backup systems are non-existent or at least 
>rare.
True.  
-- 
Alan Ballard                   | Internet: ballard@ucs.ubc.ca
University Computing Services  |   Bitnet: USERAB1@UBCMTSG
University of British Columbia |    Phone: 604-822-3074
Vancouver B.C. Canada V6T 1Z2  |      Fax: 604-822-5116
From: bking@ersys.edmonton.ab.ca (Barry King)
Newsgroups: comp.os.os2.programmer
Subject: Re: REXX and OS/2
Date: Fri, 17 Apr 92 01:49:20 MDT
Organization: Edmonton Remote Systems, Edmonton, AB, Canada

jrs@panix.com (Jon Saxton) writes:

> 
> Don't laugh.  I've just installed 6.304E and was delighted to discover that
> REXX is a standard feature of CMD.EXE.  How long has this been the case?  I
> had the Microsoft SDK versions #1, #2 and #3 but didn't know about REXX.
> Did those versions support it without telling me how?
> 
> SDK #3 = 6.123.  I never had any version between that and 6.304E.

REXX has been around in the EE version of OS/2 for a little while now.  
You can even call PM functions from REXX.  basically, anyhting that lives 
in a DLL can be called by a REXX program - quite slick.  Kinda makes 
programming .cmd files fun...

Barry King              bking@ersys.edmonton.ab.ca
Edmonton Remote Systems:  Celebrating 10 years of service to Northern Alberta
From: linville@garfield.catt.ncsu.edu (John W. Linville)
Newsgroups: comp.os.os2.programmer
Subject: Deals on development tools for Expedite members?
Date: 14 Apr 92 17:36:23 GMT
Organization: NCSU CATT Prog

Does anyone know if IBM is planning on offering any kind of special deals on
the development tools for OS/2 2.0 to those of us enrolled in the 32-bit 
Expedite program?  $600 is a lot of money (to me) for C Set/2.

The reason I ask is that I have seen where those who bought Microsoft's SDK
for OS/2 2.0 for $2600 can now get the complete set of tools from IBM for
$250-$300 (can't remember the exact price).  These people have never paid any
money to IBM for tools in the past (they got free Beta versions from IBM) while
those of us in the Expedite program have paid serveral hundred dollars for 
these tools.  It only seems fair that those of us who spent money on the Beta
tools ought to have a chance at a deal on the GA tools.

John W. Linville


----------------------------------------------------------------------------
|  John W. Linville                Amateur radio:  KD4KHC                  |
|  #include "std_disclaimer.h"     E-mail:  linville@catt.ncsu.edu         |
----------------------------------------------------------------------------
From: jarman@ee.ualberta.ca (Andrew Jarman)
Newsgroups: comp.os.os2.programmer
Subject: Re: Curses for OS/2 available?
Keywords: os2 curses
Date: 15 Apr 92 19:39:42 GMT
Organization: University Of Alberta, Edmonton Canada

mullins@convex.com (Don Mullins) writes:

>  I guess the subject says it all.  Is there an implementation of the curses
>  library used under *nix?

>Thanks,
>Don

>--
>Don Mullins
>I/O Product Engineering
>Convex Computer Corporation
>EMAIL: mullins@convex.com
There is a binary editor I sometime use that was compiled with a curses
library for OS/2, and requires a termcap.dat file and ANSI drivers to operate.
The program is called BEAV (Binary Editor and Viewer) and I think I got
it from hobbes.nmsu.edu (anonymous ftp).  I think it came with all of the
source code, so that should help you a bit.

-- 
/***************************************************************************\
|  Andrew Jarman                 |   Computer Engineering                   |
|  jarman@bode.ee.ualberta.ca    |   University of Alberta, Canada          |
\***************************************************************************/
Newsgroups: comp.os.os2.programmer
From: tanith@csd4.csd.uwm.edu (Michael D Kretzer)
Subject: Re: First step in assembly programming
Originator: tanith@csd4.csd.uwm.edu
Reply-To: tanith@csd4.csd.uwm.edu
Organization: University of Wisconsin - Milwaukee
Distribution: usa
Date: Fri, 17 Apr 1992 02:56:31 GMT

From article <1992Apr16.040558.7516@talon.ucs.orst.edu>, by choup@bionette.cgrb.orst.edu (Ping Chou -- Biochemistry and Biophysics):
>         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?

MASM 6.0 isn't a free assembler, but it's relatively inexpensive (as far
as programming languages go, around $80-$100 mail order) and it's a great
assembler for producing 32-bit apps for OS/2 2.0 (of course, you still have
to buy the IBM Developer's Toolkit to get the libraries and header files).

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

OS/2 has a totally different method of making system calls.  No more INT??
crap!!!  Unless you want to stick with DOS executables, you will have to
learn the OS/2 way of making system calls (which are by pushing parameters
on the stack and calling library procedures, even in Assembly language).

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

No, not 'absolutely', but if you are not familiar with OS/2 1.x programming
methods, I can guarantee that the OS/2 2.0 Developer's Toolkit's online
documentation won't be enough to get you up to speed.  For general programming
(i.e. not 'special' stuff like writing device drivers) you can probably
skip spending $1000+ for the Technical Library and depend on third-party
OS/2 programming books.  The problem at the moment is that I haven't seen
any OS/2 2.0-specific introductory programming books.  The 1.x books will
work fine at getting you up to speed (the example programs will compile just
fine), but be aware that OS/2 2.0 has an extended API (just browse through
the Toolkit's online docs).  Some good 1.x books are Advanced OS/2 
Programming by Ray Duncan (yes, I know it says 'advanced' in the title, but
it's a GREAT introduction to OS/2 kernel programming) and Programming the
OS/2 Presentation manager by Charles Petzold.  These two books are OS/2 1.1
books, but they are the best 1.x books that I have come across.
From: IO70935@MAINE.MAINE.EDU
Newsgroups: comp.os.os2.programmer
Subject: writing apps in OS/2 2.0
Date: 15 Apr 92 21:46:19 GMT
Organization: University of Maine System


All the propaganda surrounding the release of OS/2 2.0 has piqued my interest
in getting a new operation system.  I do have one question though........

I do a fair amount of development on DOS platforms and am attempting Windows
development in the near future.  I was thumbing through my Microsoft 6.0
manual(s) the other night and was reading about the OS/2 libs etcetera included
with MSC 6.0.  My question is.......

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

     I guess what I am asking is what is the bare minimum software requirements
     (based on MSC 6.0 or the DJGPP 32 bit port of GNU) for creating
    protected mode apps in OS/2.

   Any replys appreciated - thanks in advance

    Scot Macdonald <IO70935@maine.maine.edu>

 ************************************************************************
 *  "Which would you prefer, a computer or a gun ?" (Jello Biafra/Lard) *
 ************************************************************************
From: CATHIE@SLACVM.SLAC.STANFORD.EDU
Newsgroups: comp.os.os2.programmer
Subject: Re: Opinions about WATCOM products sought.
Date: 9 Apr 92 20:47:54 GMT
Distribution: na
Organization: Stanford Linear Accelerator Center

In reply to the following from Brian Wainscott

>I'll be needing compatible FORTRAN and C compilers under OS/2.
>The only company I know of even WORKING on a FORTRAN compiler
>is Watcom, who has one in the beta stage.
>
>What is the reputation of Watcom?  Good products?  I have never
>bought anything from them, or even heard much about them, so before
>I shell out near $1000 for their products, I'd like to get all
>possible input.  Thanks.
>
>BTW, how's the Developers Workbench?  I've also never seen it, but
>will be needing it soon.
>
>--
> Brian Wainscott     \ "Jesus is still in control of my life, He's the master
> Graduate Student      \ and second to none.  One day the Lord will break open
> U.C. Berkeley           \ the sky, so I guess you could say I'm looking out,
> wainscot@math.berkeley.edu\ I'm looking out for Number One."  - Wayne Watson

Watcom products have a good reputation.  Also I saw the Lahey folks at the
OS/2 (& Windows) Show and ask about FORTRAN for OS/2.  They don't have it
yet but are interested in user needs.  Their FORTRAN product has an excellent
reputation and is used some at SLAC.  We have had University of Waterloo
products for years and the Watcom people are affiliated so they are to be
trusted.  It is probable that someone at SLAC runs their FORTRAN, but I just
don't happen to know about it.  Does Watcom offer a demo version or a
30-day trial period?

Cathie Burke Dager, cathie@slacvm.slac.stanford.edu
> my opinion only; not SLAC's, not Stanford's, not the DOE's
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Newsgroups: comp.os.os2.apps
Subject: Re: WIndows 3.1 Apps don't run under OS/2
Date: 8 Apr 92 21:08:03 GMT
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago

In article <53957@hydra.gatech.EDU> gt0040a@prism.gatech.EDU (Thomas Michael Sorensen) writes:
>In <1992Apr7.193743.26031@hemlock.cray.com> bgm@cray.com (Bert Moshier) writes:
>>IBM showed OS/2 2.0 GA with modification running Windows 3.1 applications
>>at COMDEX (4/7/92).  Lee Reiswig did not say when the modifications would
>Er, he wasn't running a modified version of OS/2 there- he was running Win 3.1
>under a full-screen DOS box in GA (or at least that's how *I* saw it). If you 
>want Windows 3.1 you can have it.
>But yes, Win 3.1 support will be put into OS/2 2.0 direct in the Summer CSD
>release. Also supposed to have SVGA seemless Windows and some other stuff.

Not quite.  What you saw was what you might call Win-OS/2 3.1 alpha.
In other words, they took the Windows 3.1 source code, turned it into
a proper DPMI client, and ran it under OS/2 2.0.  Roughly speaking.
-- 
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: brooke@cco.caltech.edu (Brooke Paul Anderson)
Newsgroups: comp.os.os2.apps
Subject: Re: os/2 a dog????
Date: 17 Apr 92 10:13:11 GMT
Distribution: comp
Organization: California Institute of Technology, Pasadena

I would bet money that the reason the salesman thought OS/2 v2.0
was a dog is that he installed the HPFS on a machine with only
4 MB of RAM.  This is NOT recommended, as stated in the installation
instructions.  One really should RTFM.
Newsgroups: comp.os.os2.apps