Programming With WineLib
paulydavis writes "The
c/c++ users journal has an article about porting windows applications to Linux using
Winelib. The article is a good tutorial on how to obtain winelib and how to use such things as the winebuild and the winemaker tool."
Why not just avoid the Win32 APIs and use a cross-plpatform framework like wxWindows? You can built native Windows, Linux/Unix, and Mac GUI applications from the same source code. It's also been around for about 11 years.
cpeterso
It is quite useful, because a binary is now a binary, no matter what is required
Isn't there a teensy bit of a virus issue with doing something like this to a Linux box? Seems like it would be well worth the time to manually create shortcuts that launch Wine rather than just let any Windows code run unchecked.
It's this kind of thing that got Windows in trouble with viruses in the first place.
The line must be drawn here. This far. No further.
For that matter, just running linux applications unchecked would be just as dangerous. We should have a confirmation screen that makes sure you intend to be using /bin/ls and not /usr/bin/ls or /usr/local/bin/ls.
Running code is dangerous. Your account privs must be in place. It doesn't matter if the app needed winelibs or not.
There are no trails. There are no trees out here.