LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-07-2004, 06:43 PM   #1
el_scrub
LQ Newbie
 
Registered: Jul 2001
Posts: 5

Rep: Reputation: 0
Huge Porting application question


Heres a weird and difficult question.

Say you were asked to port a Messenger type application to a linux PDA. The main focus being when mail arrives you get alerted and so on.

The main things as far as I can see as for porting would be

MFC applications parts -> wxWindows
RAS API (connecting via ppp so ) -> shell pppd commands.
Windows Sockets -> berkley sockets.

The main problems in porting here from what I could tell is

Sockets -> WSAAsyncSelect has no equivilant in linux ... wondering how bad this is.

RAS API -> porting do think should cause too many problems.

MFC -> wxWindows !!! no idea of a difference`s ???? anybody

From what I gather as well I dont think I need to messenger needs load any services or anything like that , so these should be the main problems with porting (besides byte alignment and ordering etc).

So any idea`s helpful hints .. its for the Sharp Zaurus PDA btw.

regards

Karl
 
Old 06-08-2004, 03:39 AM   #2
el_scrub
LQ Newbie
 
Registered: Jul 2001
Posts: 5

Original Poster
Rep: Reputation: 0
bump -> really need some help/advice here
 
Old 06-08-2004, 07:53 AM   #3
kooch
Member
 
Registered: Mar 2004
Location: Upstate NY
Distribution: Slackware/YDL
Posts: 77

Rep: Reputation: 15
Quote:
Sockets -> WSAAsyncSelect has no equivilant in linux ... wondering how bad this is.
Berkley sockets have no concept of an 'application window'. Pick up Unix Network Programming by W. Richard Stevens.

Code:
MFC -> wxWindows !!! no idea of a difference`s ???? anybody
http://www.wxwindows.org/

I'll bet it's easier and better designed than MFC :P

You could also do away with the MFC gui code and write one in something like Python Tkinter. If that ends up not performing well enough you can then invest your time in writing the gui in wxWindows or some other cross platform toolkit.

Quote:
(besides byte alignment and ordering etc).
You can hope that whoever wrote the original app wrote portable code then you won't have to worry about this much.
 
Old 06-09-2004, 01:35 AM   #4
el_scrub
LQ Newbie
 
Registered: Jul 2001
Posts: 5

Original Poster
Rep: Reputation: 0
the question here is now much of MFC`s capibilitiess can be ported using wxWindows, does anybody know ... or will a huge re-write job have to be done ?.
 
Old 06-09-2004, 08:31 AM   #5
kooch
Member
 
Registered: Mar 2004
Location: Upstate NY
Distribution: Slackware/YDL
Posts: 77

Rep: Reputation: 15
Directly from the 1st FAQ on the wxWindows.org about page:

Quote:
wxWidgets is not a translator from one GUI from another; it cannot take a Motif application and generate a Windows application, for example. You need to learn a new API. However, the wxWidgets API has been praised for its intuitiveness and simplicity, and can be far easier to learn and use than a native GUI API such as Motif or Windows. Porting from MFC is particularly easy due to its similarity: one user has ported his CASE tool from MFC to wxWidgets in a couple of weeks.
 
Old 06-10-2004, 06:05 AM   #6
el_scrub
LQ Newbie
 
Registered: Jul 2001
Posts: 5

Original Poster
Rep: Reputation: 0
eh sorry for being a lazy arse, much oblidged for the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scared newbie, huge question eckelly Linux - Newbie 5 10-08-2005 04:27 PM
Porting Solaris Application to Linux CaptainRon Solaris / OpenSolaris 5 10-01-2005 02:29 AM
Porting question kwt0 Linux - Software 1 05-25-2005 12:50 PM
Porting win32 application into Linux sergeyy Linux - Software 1 06-23-2003 08:57 AM
Game porting question , please take part jamaso General 11 03-06-2003 01:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration