Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

winapi vs unix api



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.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org