HDTenEightyP/NetNews huggingface dataset:
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Printing ASCII
Date: 11 Jan 93 21:21:04 GMT
Distribution: na
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <C0I756.CA8@undergrad.math.waterloo.edu> gmcarthu@napier.uwaterloo.ca (Grant McArthur) writes:
>In article <1ihok0INNmb8@morrow.stanford.edu> GG.MPD@forsythe.stanford.edu (Michael Durket) writes:
>>Is there an interface into OS/2 printing that allows you to
>>submit an ASCII file to be printed on any printer (i.e. does
>>OS/2 have a general purpose ASCII to printer-dependent page
>>formatting routine)? I'd like to avoid writing a routine to
>>do this for my program if one already exists that I can use.
>
>Use LPT1: (or whatever printer port you wish) like a file.  Use DosOpen with 
>LPT1: as the file name, and then treat it like a file with DosWrite() calls.

This won't work.  If you just send to LPT1 and don't engage the
spooler, you'll just send directly to the printer.  If your printer
can print ASCII by simply sending it ASCII (as most non-PostScript
printers can), there's no problem.  But sending PS stuff without a
header will result in not even a blank page.

To do this properly within an app, you should access the spooler to
get your text formatted into a printer-specific file and send that.  I
don't know how to do this, however.  If you're using/writing a DOS
app, you've got to format it yourself, but you already knew that.

>I found that worked nicely for printed ASCII to a printer.  (My case was 
>information tables to a HP emulating printer by the NULL printer driver.)

Using the WPS to drag the file over the printer icon will work.  It
will ask you if the file is printer-specific or text.  If you select
"printer specific", then the file will be dumped as-is.  If you select
ASCII text, it will be formatted for your printer and printed (I
believe) in the courier font.  This will successfully get ASCII to a
PS printer without extra software.

-- 
  |)  David Charlap          | .signature confiscated by FBI due to
 /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
((|,)                        | source of these .signature virusses
 ~|~
Xref: sparky comp.os.os2.programmer:7397 comp.graphics:13535 comp.os.msdos.programmer:11894
From: manning@cco.caltech.edu (Evan Marshall Manning)
Newsgroups: comp.os.os2.programmer,comp.graphics,comp.os.msdos.programmer
Subject: Re: Fixed point sqrt anyone?
Date: 8 Jan 1993 00:02:03 GMT
Organization: California Institute of Technology, Pasadena
NNTP-Posting-Host: alumni.caltech.edu

murrayk@prism.CS.ORST.EDU (the Dodger) writes:

>Well? Does anyone know of a quick and dirty way to get a reasonably accurate
>square root of a fixed point integer number? My numbers are stored in a 16.16
>bit format. I've heard of a few ways, but I'm open for ideas. I just want to
>keep on avoiding floating point for ethical reasons. 8^)

It is worth mentioning that often when you think you need a fixed
point sqrt you really don't.  If you are sorting by distance you can
sort by squared distance instead, etc.  Forgive me if I am just
stating the obvious.

<<<<<<<<<< Evan M. Manning ======= manning@alumni.caltech.edu >>>>>>>>>>>>
Your eyes are weary from staring at the CRT.  You feel sleepy.  Notice how
restful it is to watch the cursor blink.  Close your eyes.  The opinions
stated above are yours.  You cannot imagine why you ever felt otherwise.
i=3;do{putchar(((0x18|1<<!(i&2)|(!!i==i)*2)<<2|2>>i%2)^(2<<1+i));}while(i--);
From: Matthew.Peters@f347.n109.z1.fidonet.org (Matthew Peters)
Sender: Uucp@blkcat.UUCP
Newsgroups: comp.os.os2.programmer
Subject: C++ and Threads
Date: Thu, 07 Jan 1993 08:16:12 -0500

I will not be running that many threads.  Somewhere around 30-40, but most of
them will be blocking so it should not be that bad.  The problem is that these
30-40 Threads will all be using the same globel data.  I will have about 300
different lists that I will have to protect.  The idea thing is to let as many
threads read as they like, but only let the lists be update by one thread at a
time.  Which means that I will have to make sure no one is looking at the list
when this is done.  So, the only way to do it is to use 2 semephores.  So now I
am using at least 600 sems just for the lists.  And that is not the only place I
have to protect data.  
There are RAM semephore in OS/2 2.0?  I thought RAM semephore were taking out? 

Thanks for your input
Matthew

Newsgroups: comp.os.os2.programmer
From: daveb@netcom.com (Dave Briccetti)
Subject: Re: Dialogs + Threads = Problems. Help!
Organization: Dave Briccetti & Assoc., OS/2 Consulting
Date: Tue, 5 Jan 1993 06:50:32 GMT

Dennis.Ingram@bbs.actrix.gen.nz writes:
: What is the overhead of defining a message queue (in
: terms of system resources), bearing in mind that the queue is only
: there to allow WinSendMsg access?
: 
I sure wouldn't worry about the overhead of the infrequent creation of 
message queues.  I wouldn't want to run a loop which creates and
destroys message queues over and over quickly.

-- 

Dave Briccetti, Owner, Dave Briccetti & Associates
OS/2 Developer/Consultant
P.O. Box 1713
Lafayette, CA  94549-7013
Newsgroups: comp.os.os2.programmer
From: t2372ca@cd1.LRZ-Muenchen.DE (Martin Rast)
Subject: C-Set/2 fabs()-Bug ???
Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
Distribution: all
Date: Thu, 7 Jan 1993 14:43:48 GMT

Hi,

is there anybody using the C-Set/2 Compiler for math-apps ?

I have a problem with fabs() and very small (means near 0) values; the results 
are very large (positive) values.
Can anybody help ?
Please EMail, I'm not reading this board very often...

Thanks in advance,
|   Martin Rast                                                                |
|   Email:  Martin.Rast@cd1.lrz-muenchen.de          Packet:  DL3RDR@DB0LAN    |
*============Everyone is a foreigner, almost everywhere...=====================*
Newsgroups: comp.os.os2.programmer
From: rcain@netcom.com (Robert Cain)
Subject: Re: Why you should get everything in writing (long)
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Sun, 10 Jan 1993 04:52:50 GMT

About this contract stuff, I was not doing business with IBM and a
contract requires a two way situation with each side receiving some
substantial consideration.  This was not the case.  I merely asked
for something that I had no reason to think could *not* be delivered
and was told "sure."  I was not buying anything.  Had that been the
case a contract would have been in order.  As for a lawsuit, I have
neither the means nor the proof to attempt such a thing even if I
was litigous which I am not.

Yes, I certainly was naive in not covering my ass better.  Guilty as
charged.  I should at the very least have asked for a letter of
intent.  That probably would have exposed the real situation much
sooner as well as giving me some possible means of seeking redress.
I say possible, not probable.

Again, as I said in my own followup I do not blame IBM as a company for
this or even the person that gave me the assurance.  I am sure that it
was as inconceivable to that person as it was to me what the situation
really was.  I wonder how many of my critics would have suspected it.
Hindsight is 20/20.  As I said, shit happens.  When I posted originally,
which I wish I hadn't, I was simply enraged and venting my spleen.

I have received several calls and much email asking my opinion on 
whether the DAP is a good program and I wish to say in public without
reservation that it is.  They offered me much assistance including
considerable free marketing help.  I still strongly criticize the
pricing of their development tools but that is the only general
criticism I have.

Peace,

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

    'The meek shall inherit the earth--the rest of us will move on..'
                                                    Sameer Parekh


               PGP 1.0 or 2.0 public key available on request.
Newsgroups: comp.os.os2.programmer
From: daveb@netcom.com (Dave Briccetti)
Subject: Re: Creating windows with WinCreateStdWindow
Organization: Dave Briccetti & Assoc., OS/2 Consulting
Date: Tue, 5 Jan 1993 07:01:58 GMT

U09046@uicvm.uic.edu (Bob Jackiewicz) writes:
: I have a parent window defined. I then create child windows. Maybe 50%
: of the time, however, the title bar of the child window is created 'under'
: the menu bar of the parent window. That is, the child's title bar is
: hidden under the parent's menu bar, or even further 'up.'

I assume you are creating the child window with WinCreateStdWindow.  Why
not leave off the WS_VISIBLE style and the FCF_SHELLPOSITION frame control
flag, and then position the window however you like (including maximized)
with WinSetWindowPos.  Be sure to specify SWP_SHOW to make it visible.

Also, please be aware if you are using FCF_STANDARD that it includes
FCF_SHELLPOSITION, so you may need to AND out that bit.

-- 

Dave Briccetti, Owner, Dave Briccetti & Associates
OS/2 Developer/Consultant
P.O. Box 1713
Lafayette, CA  94549-7013
From: wcandi@sinkhole.unf.edu (Washington Candido)
Newsgroups: comp.os.os2.programmer
Subject: << Porting or converting to OS/2 >>
Summary: converting apps to OS/2
Date: 12 Jan 93 00:40:09 GMT
Organization: University of North Florida, Jacksonville


  I have a question: I'm trying to convert (or port whatever you want to call it..) a DOS ASCII editor to OS/2. It uses the int86 call to access video mode and whatever else.
    Now , someone told I had to convert this calls to their respective API in OS/2. Does anyone know where can I get a "good" reference to the API calls. ( I do have the CSET/2 books).
    Another question: I found a book in the library called "Converting Applications to OS/2". This is a 1989 book. Does anyone know if the stuff in it works!! 
Has anyone ever seen this book?? Does anyone has the source code for the translation codes?
    Replies are welcomed!!!!  Please respond using E-mail!!

						Regards!!!!
Newsgroups: comp.os.os2.programmer
From: widow@camelot.bradley.edu (Shaun Burnett)
Subject: Re: Recommended reading for PM programming
Keywords: PM programming books
Organization: Bradley University
Distribution: usa
Date:  5 Jan 93 02:56:50 GMT

In <PVFowB1w165w@pain.la.ca.us> nizara@pain.la.ca.us (Nizar Allibhoy) writes:

>I would like to program in OS/2 PM and am looking for introductory books 
>on PM programming. Any suggestions would be appreciated. Also, is there a 
>FAQ for this group and where may I find it. Thank You.

	If you've installed the SPP, read the readme file.  It
	contains a whole slew of Red books on PM programming that you
	can buy from IBM.

	Now if I only had some money ...

	If you don't have access to the SPP readme file, e-mail me and
	I'll mail it to you.  If I get a slew of e-mail, I'll post the
	appropriate parts.

Shaun Burnett		    |	"You can't survive on a new planet with a
widow@camelot.bradley.edu   |	soul full of hope and fresh air you know."
OS/2--Happy Happy Joy Joy--OS/2		-  Dr. Who (Tom Baker)
From: gyan@unixg.ubc.ca (Gyan P. Sinha)
Newsgroups: comp.os.os2.programmer
Subject: Re: FORTRAN for OS/2?
Date: 7 Jan 93 19:56:42 GMT
Organization: The University of British Columbia
NNTP-Posting-Host: unixg.ubc.ca

In <1993Jan7.131732.5595@cs.joensuu.fi> jahonen@cs.joensuu.fi (Jarmo Ahonen) writes:


>Hello everybody,

>Is there somewhere a decent FORTRAN compiler for OS/2 2.0?
>A FORTRAN-90 compiler would be nice, but -77 compiler is
>OK (hopefully it would have some -90 extensions).

>If you do know a company that sells such a beast, then please
>inform me about the costs and wherefrom can I get it. 

>Thanks in advance,

>Jarmo J. Ahonen


Have you considered Watcom F77/386 v9.0? I have it and like it so far,
and the price is great. The US educational price is $285!

Gyan P. Sinha
UBC, Vancouver.



Newsgroups: comp.os.os2.programmer
From: U16244@uicvm.uic.edu (David James Alexander Hanley)
Newsgroups: comp.os.os2.programmer
Subject: Re: Surrendering timeslice under DOS?
Date: 10 Jan 93 13:14:47 GMT
Organization: University of Illinois at Chicago

In article <imD5wB3w165w@tcscs.UUCP>, tcscs!zeta@src.honeywell.com (Gregory
Youngblood) says:
>
>>kevin@wicat.com (Kevin Vigor) writes:
>
>> Once you know you're in an OS/2 DOS box, calling interrupt 2F with AX set
>> 01680h will release the timeslice.

  Well, I tried this, and the program became REALLY slow.  The interrupt seemed
to be giving up almost a half-a-second, far more than I wanted.  Why might
this be?  I had in mind more like 1/100th of a second, so my program would
respond realtime.

>>
>Does anyone know how to do this in pascal?

   Which pascal?  It's different in every one.

-------------------------------------------------------------------------------
"In every country and in every age, the priest has been hostile to liberty.
He is always in alliance with the despot, abetting his abuses in return for
protection to his own" - Thomas Jefferson, 1814

SEND E-MAIL TO : hanley1@earth.eecs.uic.edu
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc,comp.os.os2.apps,comp.os.os2.networking
From: acus02@email.mot.com (David McAnally)
Subject: OS/2 Technical Interchange conference in Phoenix
Reply-To: acus02@email.mot.com (David McAnally)
Organization: Motorola, Inc.
Date: Wed, 6 Jan 1993 00:40:04 GMT

Was the IBM OS/2 Technical Interchange in Phoenix (Feb 28-Mar 3) announced
on the net? I just found out about it, and didn't recall seeing it
mentioned here in the groups. 

Says here it's $595 on or before 1/15,or $695 after 1/15. 
For more information call or contact...

OS/2 Technical Interchange
731 Main Street, Suite C-3
Monroe, CT 06568
1-800-438-6720 (USA & Canada)
1-203-261-6227 (Outside USA & Canada)

--
+-------------------------------------------------------------------------+
| David McAnally                     |Internet: acus02@email.mot.com      |
| Motorola Corp. Computer Services   |    Next: acus02@ems13.corp.mot.com |
| CS / Application Engineering       | IINMAIL: USMOTWTT                  |
| M/D AZ49 R3148                     | AT&T Easylink ELN: 62867057        |
+-------------------------------------------------------------------------+
From: francis@vnet.ibm.com (Tim Francis)
Date: Wed, 6 Jan 93 19:32:14 EST
Subject: Re: Back from the Dead: status, and questions
Newsgroups: comp.os.os2.programmer
Reply-To: francis@vnet.ibm.com
Organization: IBM Canada Lab, WorkFrame/2 development
Disclaimer: This posting represents the poster's views, not those of IBM

In article <623.2B4904C6@kennel.FIDONET.ORG>,
Michael.Nelson@f20.n125.z1.FIDONET.ORG (Michael Nelson) writes:
>
>Hello Tim!
>
>Monday January 04 1993 10:10, Tim Francis wrote to All:
>
>TF-> The PDK contains beta copies of the next release.  The CSDs provide
>TF-> fixes for the current release.  Do not try to combine the two --
>TF-> they're not in the least bit compatible.
>
>    Hmmm.  It wouldn't install the CSD that is in the PDK, either, and the info file for that CSD says:
>
>Additional Information:
>
>              C Set/2 Corrective Service Diskettes (CSD)
>
>Description:
>
>The OS/2 Corrective Service Facility is a utility that applies fixes
>(service) to the OS/2 Applications.  This CSD may be applied to both
>the the C Set/2 that is included on this disk, or to C Set/2 Version
>1.0.
>
>                                          - Michael -
>
>--
>Michael Nelson

I can assure you that we have NOT shipped ANY CSDs for the beta V2 (PDK)
compiler.  Unless there is a copy of version 1 of the compiler on
the PDK hidden away somewhere (and there's not, that I know of), you
cannot install the PDK to "the C Set/2 that is included on this disk".

When you think about it, it would make no sense to ship a fix at
the same time as the code -- we would just ship the fixed code.  -tim
From: johnh@meaddata.com (John Holt)
Newsgroups: comp.os.os2.programmer
Subject: EPM question (simple)
Date: 11 Jan 1993 12:35:50 GMT
Organization: Mead Data Central, Dayton OH
Distribution: world
NNTP-Posting-Host: pleiad.meaddata.com
Keywords: epm vi emacs

I have not been able to find this answered in the documentation, or the
FAQ, so here goes.

Does anyone know how to get EPM to show the "matching" paren or brace?

If you do, could you tell me where you found it in the docs?


Thanks, and best regards,

-- 
###################################################################
John Holt                        #  Voice (513) 865-6821
Speaking only for myself.        #  
##################################################################
From: murrayk@prism.CS.ORST.EDU (the Dodger)
Newsgroups: comp.os.os2.programmer
Subject: How the hell am I supposed to profile?
Date: 6 Jan 1993 07:34:23 GMT
Organization: CS Dept, Oregon State University
Distribution: world
NNTP-Posting-Host: prism.cs.orst.edu

I'm not having ANY luck in profiling my program. I'm using the tools off of
the October PDK (anxiously awaiting the new PDK) and it just isn't working.

I'm compiling with the /Gh option to get the profiling hooks, and with the
debugging options on also. I'm linking with the /NOE options as the online
docs say.

I've even gone so far as installing the profit.sys device in my config.sys
file. IT STILL WONT PROFILE ANYTHING. (Sorry for yelling...) I type 'profit
program' and profit comes up and I can select and deselect modules and
procedures in my program. Then I click on Trace and a little dialog pops up
saying '0 events logged to ...'. What am I not doing? My app is a full screen
program, but I've tried the same with one of the sample program 'sort' with
no luck either.

Thanks for any info.

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
Newsgroups: comp.os.os2.programmer
From: stewarta@netcom.com (Alex Stewart)
Subject: Re: OS/2 Keyboard drivers - sample wanted (is REXX possible)
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
X-Newsreader: Tin 1.1 PL5
Date: Tue, 12 Jan 1993 09:31:32 GMT

Aaron Werman (awerman@panix.com) wrote:
: I would like to create a keyboard driver to a character mode
: session. It would be nice if someone could point me to a sample.
: It would be nicer if it was possible to write the thing as a
: REXX exec.

I'm not sure I understand you.  What do you want this "keyboard driver" to do?
-- 
-----------------------------------------------------------------------------
Alex Stewart:         Sysop of YBBS (510) 689-8952 |   This space for rent.
stewarta@netcom.com   .----------------------------'-------------------------
stewarta@carleton.edu | Somebody, somewhere, is offended by what I am saying.
-----------------------------------------------------------------------------
From: lord@tradent.wimsey.bc.ca (Jason Cooper)
Newsgroups: comp.os.os2.programmer
Subject: ** NEW OS2 **
Date: Fri, 08 Jan 93 07:16:44 PST
Organization: TradeNET International Trade Corp.

I know this isn't the place for this, but the board that I'm on can't 
seem to find the RIGHT place for this, so I'll post it here.  Does 
anybody know when the new OS/2 (I think it was supposed to come out this
quarter) is coming out?

                                                Jason Cooper

[PLEASE MAIL REPLIES]
From: gb8@prism.gatech.EDU (BEEBE,GARY E)
Newsgroups: comp.os.os2.programmer
Subject: Deleting Stubborn Object from the WPS
Date: 8 Jan 93 11:33:43 GMT
Organization: Georgia Institute of Technology





Hi All,

   I was playing around with the WPS Class Library in the software development
tools folder and created an instance of the WPSound object. I've followed the
supplied instructions but no matter what I do I can't delete this puppy from
the WPS. What's the verdict guy's? How do I sent that silly little bell to
bit heaven? 

Thanz
Gary

-- 
BEEBE,GARY E
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gb8
Internet: gb8@prism.gatech.edu
Organization: Wirtschaftsuniversitaet Wien, Vienna, Austria
Date: Friday, 8 Jan 1993 18:04:44 CET
From: FLATSCHER Rony <RONY@awiwuw11.wu-wien.ac.at>
Newsgroups: comp.os.os2.programmer
Subject: Re: Printing ASCII
Distribution: na

To print a text-file on any OS/2-printer: just drop the text-file via the
workplace-shell on to the printer. You should get a dialog asking you
whether the file has a printer-specific-content or whether it is plain
ASCII.

Works here perfectly e.g. for Postscript-based printers.

---rony
From: cheng@jackal.metaphor.com (Chun Cheng)
Newsgroups: comp.os.os2.programmer
Subject: How can I start a Windows app in seamless WinOS2 session?
Date: 8 Jan 93 23:04:32 GMT
Organization: Metaphor Computer Systems, Mountain View, CA
Originator: cheng@jackal

I am trying to find out if I can start Windows apps from a PM program.  I was
able to use DosStartSession with type 14 to start Excel but I was not able to 
duplicate this for any other Windows apps.  I wonder if 2.1 has any
significant improvement or not.
- Chun
From: h198@hosp.med.umich.edu  (Gene Mangum)
Newsgroups: comp.os.os2.programmer
Subject: Re: Why you should get everything in writing (long)
Date: Fri, 08 Jan 1993  14:44 EDT
Organization: Univ of Michigan Hospitals
Distribution: world
NNTP-Posting-Host: condor.hosp.med.umich.edu
X-Newsreader: FTPNuz (DOS) v1.0

In Article <1993Jan8.160909.16042@sjsumcs.sjsu.edu> "rick@sjsumcs.sjsu.edu (Richard Warner)" says:
> wcn@cs.brown.edu (Wen-Chun Ni) writes:
> >In article <1993Jan8.002640.5554@gandalf.UMCS.Maine.EDU> jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin) writes:
> >  <stuffs from Robert and Brian deleted>
 
  [Stuff Deleted]
 
> In this case he was more than a developer, he was an independent 
> businessperson.  One of the first things taught in business schools is
> that everything should be put in writing.  This was HIS failure, not
> IBM's.  Without a written agreement, he has no leg to stand on.
 
  I think with the loss of $100K and an OS/2 developer, there's plenty 
  of blame to go around.   On Bob's part, that's a huge risk.   Before
  I gave up my day job (hey, it ain't much, but it pays the bills :-)
  I think I would have hired a lawyer to form a contract.   But, unless
  IBM is restricted by M$ on providing the driver, they should come
  across with the code.   And if they are restricted by an M$ copyright,
  they should say so.
 
  From what little I remember from my Business law class, if there are
  other "uninterested" parties who can corroborate the existence of the
  verbal contract, Bob may have a good chance in court.   If not, and IBM
  denies the existence of a contract, Bob's lost.   If an employee of IBM,
  acting on IBM's behalf, commits to providing something, I *believe*
  that they could be required to provide it (he acted as an agent of IBM).
 
  At any rate, IBM should provide the code to Bob in order to avoid the
  ill will which will result from this, and to help make a nice new
  function available to users.

  Gene Mangum
  Univ of Michigan Hospitals
Newsgroups: comp.os.os2.programmer
From: s_fuller@iastate.edu (Steve Fuller)
Subject: GNU C or C++ under OS/2?I
Organization: Iowa State University, Ames IA
Date: Thu, 7 Jan 1993 17:57:45 GMT

Is there a way to make, or does there exist a version of GNU C
that will run under OS/2????


-- 
---------------------=------------------------------
Steve Fuller	     = 
s_fuller@iastate.edu =   No witty quote here yet...
---------------------=-----------------------------