TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Michael Douglass
date: 1994-06-16 13:18:00
subject: C/C++ Compiler

PF>PF>However, it is very easy to directly call the operating system's
  >  >DosFindFirst() function (and this is probably why they
  >  >decided they needn't bother coding it in the C runtime).
  >  >When you do this,  you're writing compiler independent code
  >  >(but OS specific :-().

PF> MD> You mean COMPILER specific, but -=NOT=- Operating System Specific.

PF>No;  if you use DosFindFirst() (an OS/2 call,  not a c
  >compiler call),it is compiler non-specific and operating
  >system specific.

Ok, got mixed up in my mind... When you said "When you do this," I was
thinking of the findfirst not the DOSfindfirst.

Actually, the reason why they MIGHT have coded it in the C runtime could
be for speed.

PF>An even better approach might be to code your own function,
  > which you can take with you wherever you go (compiler or
  >OS).  For an example that covers all the compilers (and
  >OS's),  look in the squish dev kit.  I'm still credited as
  >the author,  but Scott's made a lot of changes for NT and
  >to convert the 32bit FILEFINDBUF's (and reformatted the
  >source ).

Good point...  Very good point.  Write your own, make it work with YOUR
compilers, and you're set!

Michael Douglass
___
 .Mike's Mail Internet:   MICHAEL.DOUGLASS{at}LCHANCE.SAT.TX.US

--- Maximus/2 2.01wb

* Origin: The Rock BBS--410Meg, i486/33, ZyXEL v32bis. (1:387/31)
SEEN-BY: 54/54 620/243 632/348 640/820 690/660 711/409 413 430 807 808 809
SEEN-BY: 711/934 712/353 623 713/888 800/1 2442/0
@PATH: 387/31 1102 3615/50 229/2 2442/0 711/409 54/54 711/808 809 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™.