TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Schuller
from: Darin McBride
date: 1996-07-27 11:47:16
subject: Modem and Direct Screen Writes

PS> =) Okey, I'll try that... Buy the way, whats the 
 PS> difference between an integer and an "hfile"? Since I 
 PS> switched to OS/2 programming, all examples seems to 
 PS> hate the standars types like char, int, long etc. 

It would be a little more obvious if you were writing in C++ than C, but...
here goes.

HFILE is an "abstract type" that could (theoretically) change in
its implementation later.  Further, if you use hungarian notation, it will
be a hf prefix, to alert you that this variable should only be used as a
handle to a file, and not anything else.

Chances are, it will never change in implementation.  However, it does
alert you to its special use.  And that's what all the _other_ special
types are for as well.  :-)  HWND, IIRC, is simply a long.  Again, it's
there to remind you not to use it as a handle to a file... ;-)



--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 342/5015 61 3615/50 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.