HDTenEightyP/NetNews huggingface dataset:
From: os2man@panix.com (Larry Salomon Jr.)
Newsgroups: comp.os.os2.programmer
Subject: Re: Help with WinSetHook?
Date: 30 Jul 92 03:31:50 GMT
Organization: PANIX Public Access Unix, NYC

In <1992Jul29.174651.1879@jpradley.jpr.com> grumpy@jpradley.jpr.com (Jeff Markel) writes:


>Are there any good examples around of how to use hooks?  I've looked in several
>PM programming books and there was nary a mention of hook procedures, let alone
>how to write or use one.

>If anyone could post a short example, or point me toward one, I'd be grateful...
>			Thanks...

>                        Jeff Markel

And speaking of hooks, I can't get my help hook to work so that I can 
provide help for my message boxes.  I am calling WinSetHook with HK_HELP,
but my hook is never called whenever *any* help action is performed (much
less when "Help" is pressed on my MB_HELP message box).  Any idea what's 
wrong?  Will post code fragment if needed.

Thanks for any help!
-- 
Cheers,
Q
-----------------------------------------------------------------------
"If you still choose not to decide,   | "My other account is in the
Newsgroups: comp.os.os2.programmer
From: ochealth@unixg.ubc.ca (ochealth)
Subject: POSIX?
Organization: University of British Columbia, Vancouver, B.C., Canada
Date: Mon, 27 Jul 1992 02:40:29 GMT


Did I imagine this, or isn't POSIX support going to be part of OS/2?
Does anyone know what the situation is? When is it available? Is it
going to be part of the basic OS/2, or is it an extra option (how much?).
Will it be a full implementation, or just a subset?

jpm

-- 
______________________________________________________________________________
jpm: ochealth@unixg.ubc.ca         
                           Happily using OS/2 2.0 because MS Windows isN'T ___
                                                      Insert VapourFeature ^^^
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: GNU Emacs under OS/2 2.0
Date: 30 Jul 92 18:12:50 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Jul28.210455.16358@nynexst.com> andreasg@nynexst.com (Andreas Girgensohn) writes:
>I tried to make OS/2 windows bigger than 80 x 25 characters but I was
>unsuccessful.  Is that possible to do in OS/2 at all?  If yes, do I have to
>change the termcap file or does emacs understand a convention similar to
>vt100-64 for a 64 line vt100.

No.  You have to do a mode command from the OS/2 command line.  Emacs
will use whatever size the screen is.  For instance, to get 50 lines,
do a "MODE 80,50" prior to loading emacs.  In a window, all sessions
are 80 columns, but in text mode you can use whatever mode your
display allows (I can MODE 132,44 with my ATI VGA Wonder).  Emacs will
use any size OS/2 allows.

If you're already running emacs, you can shell to the OS/2 command
line (via CTRL-Z), give the mode command, and exit back to emacs.
Emacs will use the new screen size.

-- 
   |)  David Charlap           "I don't even represent myself
  /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
 ((|,)
  ~|~  Hi! I am a .signature virus, copy me into your .signature file.
From: fab@ecs.soton.ac.uk (Flavio Bergamaschi)
Newsgroups: comp.os.os2.programmer
Subject: OS/2 Device Drivers
Date: 24 Jul 92 19:13:34 GMT
Organization: Electronics & Computer Science Dept, University of Southampton, UK


Hi all;

Does anyone know a good book or reference on writing device drivers for OS/2 v2.0

Thanks;

-- 
Flavio A. Bergamaschi  (fab@ecs.soton.ac.uk)
Department of Electronics and Computer Science
Southampton University , Southampton, SO9 5NH , U.K.
phone: (+44 703)592704   fax: (+44 703)593045
From: emh@dlogics.com (Ed Hovorka)
Newsgroups: comp.os.os2.programmer
Subject: File Associations
Keywords: INI PM_ASSOC_FILTER
Date: 28 Jul 92 17:26:26 GMT
Organization: Datalogics, Inc.

Is this thing on??(Check 1-2-3, Check :)   )
I'm reposting something I've posted before because I still don't have
an answer.  


What I'm trying to figure out is how file associations are stored 
internally in OS/2 2.0.  In version 1.3's OS2.INI, I was able to do a 
WinQueryProfileString on PM_ASSOC_FILTER with a key of "*.TXT".  This 
retrieved the name of the program to execute when an icon for a file with 
the .TXT extension is double clicked.  The OS2.INI file is set up quite
differently in 2.0.

I can set up the association OK in WPS, so that when I double click on the
text file's icon(under the drives folder) I get the correct executable to
run.

How can I find, from within my C code, the name of a program that is 
associated with a specific file extension in 2.0? 

According to any INI viewers I've tried, the file extension seems to be
associated with a number.

Any help would be greatly appreciated.

-- 
Ed Hovorka
Drone
Datalogics, Inc.
A growing exited company
From: jwj@dde.dk (Jesper Wolf Jespersen)
Newsgroups: comp.os.os2.programmer
Subject: How do I print the GCC docs ?
Summary: How to print the .texi files from GCC 2.1
Keywords: gcc, .texi
Date: 16 Jul 92 15:32:03 GMT
Organization: Dansk Data Elektronik A/S

I have used the OS/2 port of GCC 2.1 for a little while now and generally 
like the product. Now I would like to know how I go about printing
the documentation that came with it.
The documentation files are all filled with text formatting codes and
are pretty unreadable in that form. All files have the ending '.texi'
what kind of text formatter handles them?

How do I get hold of software to translate these files into something printable
on say a canon laserprinter? I do have access to both OS/2 machines and Unix 
machines but havent found anything that can handle these files (I am no wizz at
text formatting :-)

Thanks in advance for any usefull sugestions.

Greetings from Denmark
Jesper Wolf Jespersen
email: jwj@dde.dk
Fidonet: Jesper Wolf of 2:230/100.1
Newsgroups: comp.os.os2.programmer
From: bergstro@src.honeywell.com (Pete Bergstrom)
Subject: how to give program the focus?
To: comp.os.os2.programmer
Posted-Date: Wed, 29 Jul 92 15: 38:20 CDT
Organization: Honeywell Systems & Research Center
Date: Wed, 29 Jul 1992 20:38:20 GMT
Received-Date: Wed, 29 Jul 92 15: 38:22 CDT


This may be a relatively easy answer, but I want to capture mouse button
clicks on my window.  I've done this by processing WM_BUTTON1DOWN and
I do get the coordinates I want.

But, when I do this, the title bar for my window loses the focus
(grays out).  When this happens, I can't use ALT-F, etc key
combinations to navigate the menus until I explicitly click on the
title bar (or menu bar) again.

So, how do I make sure that the window retains the focus?

Any help appreciated - email or news postings (may help others).
Pete
Lines: 12
Date: Wed, 29 Jul 92 23:41:18 MDT
Newsgroups: comp.os.os2.programmer
Subject: Re: Borland C annoyance
Organization: Brigham Young University, Provo UT USA
From: websterw@bones.et.byu.edu (william d webster)

I encounter the "Date/Time ..." error constantly and have yet to find
a solution.  I have not seen the Ctrl-C problem but started having
another problem yesterday.  It began with a 'SYS3176' termination of
the IDE while I was begining execution of my program.  After starting
a new DOS window I started the IDE and 'BC.EXE' terminated causing
a 'SYS3176' and have since been unable to load BC from that DOS window.
My assumption is that one of the 'DOS Settings' was changed and has been
causing the problem but I can't determine which one.  I have checked
the DPMI setting to make sure that it ENABLED.  Any ideas?
-- 
Test
     sig
From: "bill dehaan" <bill.dehaan@canrem.com>
Newsgroups: comp.os.os2.programmer
Subject: trap0008
Date: 21 Jul 92 21:41:03 EST
Reply-To: "bill dehaan" <bill.dehaan@canrem.com>
Distribution: comp
Organization: Canada Remote Systems

In article <terryk.711221914#cc.gatech.edu> terryk@terminus.gatech.edu (Terry Ka

TK>Can anybody tell me what trap 8 is?  (Haven't rec'd my redbooks yet!)
TK>I suspect this is a memory problem... especially since this started
TK>with trap 2s at the same location.

Yeah, I can  tell you. Trap-8  is a real  pain. It is  a trap within the
trap handler. Essentially, you had a bug which generated a trap (C,D, or
2, most likely). When the OS/2 trap handler caught the error, *IT*  then
trapped. This is one of those things that should *NEVER* happen, and  is
usually the result of  bad ram or a  screwed up CPU. We  were testing an
application a few months ago which  ran on 8 machines perfectly, but  on
the 9th machine  always trap-8'ed. Replacing  system memory removed  the
problem (thank god).

----------------------------------+-----------------------------------------
Deus Ex Machina                   | Internet:   bill.dehaan@rose.com
Software Consulting and Gator Pit | I'm a brain in a vat. What about you?
----------------------------------+-----------------------------------------
---
  SLMR 2.1a  Please tell me when I'm not speaking English
--
Canada Remote Systems  - Toronto, Ontario/Detroit, MI
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.os.os2.programmer
From: pathak@mitre.org (Heeren Pathak)
Subject: Re: C2 Security
Followup-To: comp.os.os2.programmer
Organization: Mitre Corporation
Date: Mon, 27 Jul 1992 13:35:06 GMT

In article <1992Jul24.201426.5137@chpc.utexas.edu>, apas611@chpc.utexas.edu
(David Boles) wrote:
> 
> It seems that security in the orange book sense doesn't make much sense
> for most folks however.  It focuses on things like loss or alteration
> of information.  While these things are certainly important, for most

I think loss or alteration of information is very important for most folks.
 Computer related fraud is a multi-billion dollar problem.  If businesses
took security a bit more seriously, they could probably prevent a fair
amount of the fraud.  Unfortunately, most corporations either unwilling to
pay the price it takes or don't have the personnel who understand security
issues.

> non-military related systems, attacks (malicious or inadvertant) that
> result in denial of service are just as important.
> 

Denial of service is important but something like that is detectable.  The
important problem is to make sure your "enemy" doesn't get access to
important information without you knowing about it.  This issue is relevant
in the corporate setting.  With the cold war over, there have been numerous
reports of various corporations and governments spying on foreign
businesses and business personnel to get trade secrets.  

-------------------------------------------------------------------------
Heeren Pathak                      | Television is a device that permits
pathak@mitre.org                   | people who haven't anything to do to
Mitre Corporation                  | watch people who can't do anything.
(617) 271-7465                     |	               	-- Fred Allen
-------------------------------------------------------------------------
Disclaimer: Mine not Mitre's.
Newsgroups: comp.os.os2.programmer,comp.os.os2,comp.os2.misc
From: hubec@ctp.com (Hubert Chou)
Subject: Development Environments
Date: Tue, 21 Jul 1992 15:59:31 GMT
Organization: Cambridge Technology Partners

Can anyone recommend some decent development environments
for OS/2 PM?  Is there a listing w/evaluations of existing
development environments that someone might be able to point me to?

I am developing a 85-100 window application with connectivity
to Unix.  Mostly data entry/retrieval, with all the validation, etc. 
requirements.

My experience has been in Windows, primarily with Borland OWL,
Visual Basic, SQL Windows, etc., which I've found to be
adequate packages for developing these types of applications.  I
would like to develop in OS/2 using a comparable package.  (I found
Borland OWL in particular to be superb for development in Windows.)

Thanks!
Newsgroups: comp.os.os2.programmer
From: ochealth@unixg.ubc.ca (ochealth)
Subject: fopen(f,"r") vs fopen(f,"rb") what's the diff?
Organization: University of British Columbia, Vancouver, B.C., Canada
Date: Sat, 25 Jul 1992 17:58:48 GMT



A number of UNIX programs I have ported to OS/2 using emx or gcc
choke on binary files, unless I modify them.

for example:
f = fopen(name,"r") must be changed to f=fopen(name,"rb")
etc.

I was wondering just what happens when you don't open as binary.
Will it return EOF when it sees ^Z or what?

This is sort of troubling to me, since EMX is desing to make porting UNIX easier

Was fopen changed to make it more compatible with OS/2 or what. From what I've
read "r" and "rb" are handled the same in UNIX.

jpm


-- 
______________________________________________________________________________
jpm: ochealth@unixg.ubc.ca         
                           Happily using OS/2 2.0 because MS Windows isN'T ___
                                                      Insert VapourFeature ^^^
From: bergstro@src.honeywell.com (Pete Bergstrom)
Newsgroups: comp.os.os2.programmer
Subject: Summary: how to give program the focus
Date: 31 Jul 92 17:41:12 GMT
Organization: Honeywell Systems & Research Center
To: comp.os.os2.programmer
Posted-Date: Fri, 31 Jul 92 12: 41:12 CDT
Received-Date: Fri, 31 Jul 92 12: 41:14 CDT


Thanks for the responses.  Several hours after posting the original question,
I got back home and tried out a hunch and it turned out to be mostly
correct.  Michael Harris pointed out the rest of the solution.

The scenario:
  In my application, I want to capture the position of the mouse when
  the user clicks a button.  If I simply record the position
  parameters and return (MRESULT)0, which indicates that I've
  processed this message, the frame for the entire application loses
  the focus, which means that I can't use the ALT-F, etc keystrokes to
  access the menus.

The solution:
  Call DefWindowProc() (whatever the default window message handler is
  called ) *BEFORE* you fully process the WM_BUTTON1DOWN message.

For example, this might look like this: (details escape me at the
present)

  ...
  switch(...) {
      case ... :

      case WM_BUTTON1DOWN:
          defResult = DefWindowProc(hwnd,msg,mp1,mp2);
	  savedPointerPos.x = SHORT1FROMMP(mp1);
	  savedPointerPos.y = SHORT2FROMMP(mp1);
	  return defResult;
      case ... :
      ...
  }
  ...

This ordering guarantees that the application window will retain the
focus (including coming to the foreground) and that you will also be
able to process the mouse button click message.

Pete
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Help: Positioning help screen
Date: 23 Jul 92 20:20:45 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Jul23.004106.1@cc.curtin.edu.au> scheeyk01@cc.curtin.edu.au writes:
>Howdy!
>I'm having some problems with PM programming. I'm wondering whether it is 
>possible to set the initial position and size of the help window when
>it appears. I want it to appear in its full width but half its full 
>length when the user calls up the help. I would be extremely grateful if
>there's someone who can show me how it is done. Thank you!

I don't know how to do this, but I may be able to help.  Do you get a
window handle back when you launch the help system?  If you do, can
you send the window's frame a WM_RESIZE message?  That may work.


-- 
   |)  David Charlap           "I don't even represent myself
  /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
 ((|,)
  ~|~  Hi! I am a .signature virus, copy me into your .signature file.
Newsgroups: comp.os.os2.programmer
From: rls@.wedge.nt.com (Robert L. Smith)
Subject: Re: Hard Disk Interrupts?
Organization: Northern Telecom Inc., RTP, NC
Date: Mon, 27 Jul 1992 19:08:58 GMT

Jeff Cohen of jeffc@netcom.com WROTE on Sun, 26 Jul 92 21:32:48 GMT:

> OS/2 most certainly uses hard disk interrupts, but only if it has a
> native device driver. . .  OS/2 ships with native drivers for
> Adaptec and Future Domain SCSI (and IBM, of course).

    I have an Adaptec SCSI adapter, so I should be able to obtain this
support.  Given that the system is already running, however, the next
question is how?  Should I put on the Interrupt Enable jumper and
reinstall OS2?  That is, will OS2 automatically determinine that it
should substitute interrupt support, or do I have to tell it somehow?
    Thanks much for all the encouragement!

Regards, rLs
Newsgroups: comp.os.os2.programmer
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: CSD for C SET/2 Available
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Date: Sat, 25 Jul 1992 01:26:35 GMT

In article <24JUL199215303699@venus.tamu.edu> tcf9033@venus.tamu.edu (FREY, TONY C) writes:
> There is a CSD available on Compuserve for C SET/2. Say's that it fixes
>8 to 10 bugs and offers a 10% increase in compilation performance. The file
>is 800k and would take some major time to download. Anyone know if this file
>is available somewhere else?

Yes.  As always, ftp-os2.nmsu.edu.  Filename is something like
cs00009.{zoo|zip}.

I can't tell you how many times I've seen, "I've heard about file x,
where is it?" and the answer has been "ftp-os2.nmsu.edu."  This site,
in my humble opinion, is fast becoming _the_ site for OS/2 software
and related files.

-- 
Get the OS/2 FREQ. ASKED QUESTIONS LIST | Timothy F. Sipples
from 128.123.35.151, anonymous ftp,     | Internet: sip1@ellis.uchicago.edu
directory pub/os2/all/faq, or from      | Dept. of Econ., U. Chicago, 60637
LISTSERV@BLEKUL11.BITNET (send "HELP"). | Tsongas > Perot > Clinton.  Yay.
From: anderson@mayo.edu (Alfred I. Anderson)
Newsgroups: comp.os.os2.programmer
Subject: Font Generator Utility Exist?
Date: 23 Jul 92 13:18:12 GMT
Organization: Mayo Foundation

One of our investigators is looking for C subroutines that will allow the 
translation of ASCII text into pixels in a memory-resident bitmap.  
Commercial, shareware, freeware, .... all are fine.  Do these routines exist?

In particular, he has an image of an x-ray in a large RAM memory.  He wants 
to lay text (various fonts, point sizes, etc) on top of the image to allow 
the entire bitmap image to be printed.  It would be very tedious to write 
the software to convert the letter "A" to a series of pixels that need to be 
turned on.  He is hoping that such software exits.


Anyone offer a lead?

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alfred Anderson                Internet:    anderson@Mayo.edu
Mayo Foundation - Rochester MN 55905

NOTE:  PLEASE INCLUDE YOUR RETURN ADDRESS IN THE BODY OR .SIG FILE
OF ANY NOTE SENT TO ME --- THE SOFTWARE ON MY END DOES NOT PASS 
YOUR RETURN ADDRESS FROM THE MESSAGE HEADER TO ME!
-----------------------------------------------------------------
From: marten@feki.toppoint.de (Marten Feldtmann)
Newsgroups: comp.os.os2.programmer
Subject: Q: Using Smalltalk/V-PM and IBM C Set/2
Distribution: world
Date: Fri, 24 Jul 92 21:48:01 GMT
Organization: Private Site

I've some problems using IBM C Set/2 and Smalltalk-V/PM together:

 I would like to call a self-made dll-routine from Smalltalk. Well the
test-dll, shown in the second book of Digitalk works ok, but now we come
to the first own routine and nothing works:

 Therefore two questions:

 a) I would like to give a string to the dll, but how could this be
done. Float, Integers -- everything works, but how about strings:

 Code from Smalltalk:

callWithString: aString

 < api: 'TESTROUTINE' struct short >

 Code from 'C'

#include "objects.h"

...

short _Far16 _Pascal TESTROUTINE( recvr)
struct object * _Far16 recvr;
{   return recvr->header.ObjectSize;
}

 ... but with calling .....

 TestLibrary callWithString: 'Hello'   Smalltalk terminates .. :-(

 Could someone show me an example for this problem?

 b) What is the stuff about the fixed pointers found in "fixdptrs.h"?

 MF


--
Marten Feldtmann                         E-Mail: marten@tpki.toppoint.de
2300 Kiel 14,    Kieler Str. 29,   Tel.: 0431-731916,   FAX: 0431-737677
From: sl31+@andrew.cmu.edu (Stephen M. Lacy)
Newsgroups: comp.os.os2.programmer
Subject: Which message on Font Change.
Date: 22 Jul 92 12:48:19 GMT
Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA


	I've been typing in some more of the sample progrmams from the book
that I recently got, and my question is this:  I'm using the function
GpiCharStringAt, and just for the hell of it, I brought up the "Font
Palette" and dragged a different font to my window to see what would
happen.  There was no visible change, but if I then "invalidated" some
portion of the window, that portion, when refreshed, came back in the
new font.  My question is:  What message is sent to my window procedure
when I drag a new font to the window?  I tried a couple of the more
obvious ones, I don't remember their names right now, something about
SYSVALUE and COLORCHANGE, I'm not sure.  Also, I'm assuming that this is
the way these features work, if they're not, let me know what the
standard way of dealing with them is.  I've also tried dragging a new
color to the window, and it seems to make no difference at all.  Is
there a message that also goes with a color change?  Some pseudo-code
would also be helpful.  Thanks.  

Steve
"Emma, please stop chewing on my purple love seat."
Newsgroups: comp.os.os2.programmer
From: dmm@vnet.ibm.com (dave)
Date: Mon, 27 Jul 92 10:49:52 EDT
Newsgroups: comp.os.os2.programmer
Subject: Re: Q: Using Smalltalk/V-PM and IBM C Set/2
Organization: IBM Canada Lab
News-Software: UReply 3.0
X-X-From: dmm@vnet.ibm.com (Dave Mooney)

In <712014481snx@feki.toppoint.de> Marten Feldtmann writes:
> I've some problems using IBM C Set/2 and Smalltalk-V/PM together:
>   Code from 'C'
> short _Far16 _Pascal TESTROUTINE( recvr)
> struct object * _Far16 recvr;
> {   return recvr->header.ObjectSize;
> }

That  _Far16 recvr  should probably be  _Seg16 recvr .  And just for
good measure, try writing your prototype as ANSI-style, rather than K&R-
style:

  short _Far16 _Pascal TESTROUTINE( struct object * _Seg16 recvr ) { }

dave

-------------------------------------------------------------------------
Dave Mooney                                              dmm@vnet.ibm.com
 C Set/2 Development, IBM Canada Lab, 844 Don Mills Rd, Toronto, Ontario
            "If you've got a blacklist, I want to be on it"
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Can someone at IBM please explain why developers should develop for OS/2?
Date: 30 Jul 92 21:41:14 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <pathak-290792154844@virtual.mitre.org> pathak@mitre.org (Heeren Pathak) writes:
>Since MS is giving the NT CD's for $69, ~$300 is a bit high.  IBM needs to
>get software out for OS/2.  Sure they have "convinced" the big companies to
>release OS/2 products (supposedly they funded the development effort) but
>they really haven't done much for the small developers.

This is a pre-release beta SDK.  I'd be really surprised if Microsoft
ships their final release NT-SDK for $70.  Quick-C carries a price tag
of more than double that!


-- 
   |)  David Charlap           "I don't even represent myself
  /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
 ((|,)
  ~|~  Hi! I am a .signature virus, copy me into your .signature file.