winapi vs unix api

Stephen Adler adler at stephenadler.com
Sun Jan 14 14:27:25 EST 2007


Guys,

I'm in the mids of writing my first winapi program to do basic file IO 
under windows. My goal is to
write portable code between linux and windows. I took a quick look at 
cygwin, but this seems to
require the use of gcc under windows. While this is a good thing for use 
unix/linux/gnu guys,
it's not a good thing for the corporate types I'm writing this code for 
(and they sign the pay check...)

So I'm playing around with using CreateFile() WriteFile() ReadFile() 
etc. So what I'm wondering
is how do other people deal with this kind of OS API issue. Do you use 
#ifdef UNIX; #else; #endif
preprocessor commands to embed unix io API calls and windows io API 
calls? Or have you found
a way of using cygwin with visual studio 2005?

Thanks for any advice which comes my way.

Cheers. Steve.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Discuss mailing list