porting VC++ sourcecode to linux
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: porting VC++ sourcecode to linux

Hybrid View

  1. #1
    Join Date
    Dec 2003
    Posts
    3

    porting VC++ sourcecode to linux

    Hi

    I have developed VC++ Applications on Window platform. I want to convert it into Linux platform. Is any cross complier method to convert into linux platform.Please suggest easy method to do so.

    vir

    vir_123@indiatimes.com

  2. #2
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    Is your program graphical ? Do you use MFC, ATL, straight Win32 functions ? What system components does the program rely on ? What does the program do ?

    Porting a program to Linux can be easy, but in most cases, you'll have to do some serious work. Maybe an OK solution would be to try to run it on Wine (Windows interface to Linux functions, they hate it when you say it's a Windows emulator ).
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

  3. #3
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,062
    Originally posted by Yves M
    Wine (Windows interface to Linux functions, they hate it when you say it's a Windows emulator ).
    Wine recursively means: Wine is not an emulator

  4. #4
    Join Date
    Oct 2003
    Location
    Philadelphia, PA
    Posts
    167
    I wanted to add some 2 cents here. Our firm has applicaitons that we support on both Windows and Linux/Unix. Whenever we write C/C++, we are always very careful about the API's that we used becuase of their portability to Linux, which, if you serve corporate clients, is just about getting to be essential. So, the bottom line is, if at all possible, plan ahead and your porting is mostly based on the API' that you use, becuase otherwise, in C++, we tend to rely on MFC and other MS API which is generally not portable. For that, WINE might be something to consider.
    Mike Dershowitz
    miked@lexientcorp.com
    www.lexientcorp.com

  5. #5
    Join Date
    Nov 2003
    Posts
    1,405
    I've found a very promising open source portable GUI package called wxWindows,

    http://www.wxwindows.org/

    If the bulk of the port is the GUI I think you should consider rewriting the MFC GUI part of your program to wxWindows. An additional benefit would be that apart from Linux you also get many additional platforms like Mac 'for free'.

  6. #6
    Join Date
    Dec 2003
    Posts
    3
    hello

    my program is graphic based using MFC, Win32 function on windows platform. It transfer the file from one end to other end.
    I want to make it executable on the Linux platform with Kernel onlyi.e without XII.

    Is wxWindows application use XII.

    vir

  7. #7
    Join Date
    Feb 2002
    Posts
    4,640
    wxWindows is a cross platform GUI API. Basically, it allows you to write GUI applications in a platform independent manner. You write your GUI code, targetting the wxWindows library, then you re-compile your code on all the platforms you wish to support.

    If you don't want a GUI at all (i.e. you want to re-write your application as a console app), then you don't need wxWindows. All you need to do is remove all the MFC code from your app (well, basically).

    --edit
    I guess I don't understand your question. The Linux platform you're targetting doesn't have X installed? Or, do you not want to use X? Either way, you don't need wxWindows, if you do not want a GUI.

    Viggy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center