-
April 22nd, 2003, 06:12 AM
#1
Junior Member
Can I use Win API in linux?
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.
-
April 22nd, 2003, 07:12 AM
#2
\"Ignorance is bliss....
but only for your enemy\"
-- souleman
-
April 22nd, 2003, 10:24 AM
#3
Re: Can I use Win API in linux?
Originally posted here by r4BBiT
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.
Take a look at wine
Oliver's Law:
Experience is something you don't get until just after you need it.
-
April 22nd, 2003, 02:08 PM
#4
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.
\"Ignorance is bliss....
but only for your enemy\"
-- souleman
-
April 22nd, 2003, 02:21 PM
#5
the only question is why . . .
the MFC's (Microsoft Foundation Classes) suck ass !!!
QT (www.trolltech.com ) has far better API's
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio the best station for C64 Remixes !
-
April 22nd, 2003, 03:10 PM
#6
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.
-
April 22nd, 2003, 08:19 PM
#7
Banned
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.
-
April 22nd, 2003, 09:46 PM
#8
Junior Member
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.
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.
I dont know what do Mahdi mean by that, are you thinking about modules or header files?
-
April 23rd, 2003, 09:21 AM
#9
Originally posted here by r4BBiT
I dont know what do Mahdi mean by that, are you thinking about modules or header files?
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.
Oliver's Law:
Experience is something you don't get until just after you need it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|