Linked by Thom Holwerda on Fri 20th Jul 2007 23:36 UTC, submitted by Mickey
Ubuntu, Kubuntu, Xubuntu This is the first install of what will be a periodic, ongoing series on how migrate from Microsoft's Windows to other Operating systems. This first article provides insight in the much discussed Ubuntu Linux. "Were it not for Ubuntu being so easy to use in practically every way, I would not have written this article. But, as I've moved forward with it I've discovered a whole new world outside of a strict Windows environment. I think there are probably hundreds of thousands of users out there who are where I was: right on the verge of taking the plunge, wanting something more but not sure how to get it."
Thread beginning with comment 257035
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[5]: Another article?
by Valhalla on Sat 21st Jul 2007 16:59 UTC in reply to "RE[4]: Another article?"
Member since:

ashigabou wrote:
-"For example, I recently had problems with file handle on windows: on unix, opening a file is simple, and you have the choice of file handle or low level file descriptor. In Win32, you have something like :, so insteand of two simple concept with a clear API, you have several concepts more or less similar,"

well, the simple way would be to use the actual WIN32 API instead of obscure wrapping mechanisms.

DWORD BytesRead;
ReadFile(File, Buffer, BytesToRead, &BytesRead, NULL);

now, I prefer the cleaner posix file-handling but it's not as bad as you try to make it out with that "(un)Handy Guide to Handles."

Reply Parent Score: 4

RE[6]: Another article?
by ashigabou on Sun 22nd Jul 2007 01:56 in reply to "RE[5]: Another article?"
ashigabou Member since:

now, I prefer the cleaner posix file-handling but it's not as bad as you try to make it out with that "(un)Handy Guide to Handles."

The problem is was to handle temporary files which have been opened through a secure mechanism (and gives you back a file descriptor). The libc functions open and close do not work on windows, so you have to use the function CreateFile, and you have to convert the file handle to a file descriptor somewhat. This is just an example of the differences between a clean, orthogonal API, which exists for years, and the win32 api which has a function with 7 arguments, of which 2 are almost always NULL.

Reply Parent Score: 2