Hi,
I currently using Win98SE to develop c++ code using win API, but Im intressted to switch to my Slack+Winex. My question is can I somehow use Win API under linux? Thanks in advance.
Printable View
Hi,
I currently using Win98SE to develop c++ code using win API, but Im intressted to switch to my Slack+Winex. My question is can I somehow use Win API under linux? Thanks in advance.
No
If you are programming for windows/wine/winex whatever, then yes, winAPI's will (should at least) work and can be used. If you are programming for linux/KDE/Gnome/Enlightenment/X/whatever then you can not use them.
the only question is why . . .
the MFC's (Microsoft Foundation Classes) suck ass !!!
QT (www.trolltech.com ) has far better API's
The machine you are programming on is irrelevant (assuming the LIbs are there), ll that matters is the machine that you are running it on. But if you want to write windows code on a Linux box Wine will help with debugging if you use windows api's. Otherwise you will need to transfer the program to a windows box for debugging...pain in the butt.
If you want to write code that can be use on an windows or linux machine, you should write your own functions. The answer to your question is: NO.
Thanks to everyone for reply, I'll install winex again on my linux and try to use win api. Im not using MFC; for now just API.
I dont know what do Mahdi mean by that, are you thinking about modules or header files?Quote:
Originally posted here by Mahdi
If you want to write code that can be use on an windows or linux machine, you should write your own functions.
He means you have to write your own functions for opening a window i.e.. Then you can create 2 libraries with the same functions, 1 for windows and 1 for linux. That way your program can stay the same and it's just a case of recompiling and/or relinking to make it work on either of them.Quote:
Originally posted here by r4BBiT
I dont know what do Mahdi mean by that, are you thinking about modules or header files?