ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like to know what it takes to port programs, for example what is required to make a Windows program run as a Linux native program. Not looking for exact details or emulators, just the steps and info needed. Thanks for any advise offered.
It depends on the GUI library the windows program is using.
This may be total different / unavailable on linux.
e.G.
MFC -> nearly impossible
Qt -> no problem
no, it doesnt really matter what api has been used the most important thing is if the windows program provides an abstraction from the win-specific calls, if so then you simply have to write the same interface with *nix system calls(not too hard), however if the windows program has all the windows-specific calls mixed in with everything else then trying to port it would be a total nightmare.
by lehrig But that's what nearly all windows progs are like.
well i cant say ive seen the source of many windows programs but i always provide a decent abstraction between the operating system and my code, for example i have a physics particle simulator written in c++ and opengl, all the platform specific stuff is hidden behind classes and it took me less than a day to port it from linux to windows.
if most windows programs are like that then its the fault of the programmer not windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.