C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-24-2008, 04:49 PM   #1
Registered User
 
Join Date: Jul 2008
Posts: 54
WIN32 API and Linux... *shudder

Hi, I want to write a cross platform program for windows and Linux, I love Linux but am stuck with windows on such a common basis, and so I want to make my program use the WIN32 API so that I can make toolboxes and file searching and all that good nonsense, however I have no idea how WIN32 programming would be transcribed into Linux programming. Is there an easy way to do this? Or am I going to have to use Wine or something like that to run my program without extensive reprogramming of the GUI functions for Linux?

E.G. is there a call for Linux equal to the main WinProc function for WIN32 programming? I probably sound like a newbie when it comes to Linux programming and that's not too far off unfortunately... everyone starts somewhere and that somewhere for me is here, so any help would really be appreciated!
parad0x13 is offline   Reply With Quote
Old 07-24-2008, 04:57 PM   #2
Registered User
 
valaris's Avatar
 
Join Date: Jun 2008
Location: RING 0
Posts: 462
.Net and mono ?
valaris is offline   Reply With Quote
Old 07-24-2008, 04:58 PM   #3
Registered User
 
Join Date: Oct 2001
Posts: 2,110
  1. Use a cross platform toolkit like Qt, GTK, or wxWidgets
  2. Use wine under POSIX and program in Win32
  3. Use X11 under both and get an X11 server for windows
robwhit is offline   Reply With Quote
Old 07-24-2008, 04:59 PM   #4
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
I'm guessing that, unless you already know the WIN32 API and are going to leverage that knowledge, you should instead learn a cross-platform windowing thing such as wxWidgets, or GTK+, or some others that I can't think of right now.
tabstop is offline   Reply With Quote
Old 07-24-2008, 07:27 PM   #5
Registered User
 
Join Date: Jul 2008
Posts: 54
Thank you Ive decided to learn wxWidget programming because of you guys.
There seems to be so many benifits to it, all except the horribly large executable filesize... Eh but you win some, you loose some.

Looks like I have a lot to learn... like allways
parad0x13 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
platform specific API or C standard API George2 C Programming 1 11-12-2007 01:32 AM
A question about windows programming Hussain Hani Windows Programming 16 05-23-2007 07:38 AM
Linux API functions Micko Linux Programming 3 07-01-2004 03:39 PM
Linux API c++.prog.newbie Linux Programming 10 02-25-2004 04:44 AM
Something similar to WIn32 API ? Nutshell Linux Programming 13 02-12-2002 05:33 PM


All times are GMT -6. The time now is 09:14 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22