944,144 Members | Top Members by Rank

Ad:
Dec 6th, 2007
0

Any alternative to the MS COM in Linux

Expand Post »
Hi all
I am assigned a task which is to port a windows project into linux. I am relatively new to the porting concept. However I find this as interesting. But to my wonder I don’t see much discussion or help on porting at web and forums. Usually people try to port an application to linux by using WINE but I think that it is not actual porting of the application but instead we are running a windows executable inside linux process through some virtual layer… but that is not porting as much as I have understood. Also to write a portable code is not as difficult as to try to port an existing Windows specific application code into the linux platform.
I have a windows application/project built in C/C++ using windows API and MFC at some spots. Now the application need to be ported to Linux. I want to understand that are there any rules & guidelines specific to the porting. Currently I have situation somewhat like this:
Application has a MS COM Component depending on various libraries present in the shape of DLLs.
This COM (Component Object Model) serves the basic and fundamental logic of the application. But it uses several other 3rd party libraries and some self built libraries present in the form of DLL. Some of these DLLs are using MFC library.

Can any body suggest me that what formula I shall apply and follow any theory of porting in my situation. Currently I am planning to try to convert all the DLLs in a Linux Dynamic shared library and exclude all the MFC/Win API specific part from the code(that can be analyzed later). But What I have confliction is that is there any replacement of MS COM technology in Linux or I have to convert that COM into the Shared Library as well such that a separate process is forked in linux which contain a shared object or some thing like that. I really need the expert programmers guidance and any kind of information will be appreciated.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
nabilchampion is offline Offline
25 posts
since Jul 2007
Dec 6th, 2007
0

Re: Any alternative to the MS COM in Linux

Its gona be veey difficult if not impossible
Moderator
Featured Poster
Reputation Points: 1800
Solved Threads: 575
Moderator
jbennet is offline Offline
16,534 posts
since Apr 2005
Dec 7th, 2007
0

Re: Any alternative to the MS COM in Linux

The only way you can even come close to 'porting' MFC parts of your code is to use wxWidgets, which has a similar API design. See this article for more information:
http://www.ibm.com/developerworks/linux/library/l-mfc/
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: SharePoint's Search Box
Next Thread in IT Professionals' Lounge Forum Timeline: LOGON command window





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC