Results 1 to 11 of 11

Thread: MFC APP run on linux server?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    oregon
    Posts
    88

    MFC APP run on linux server?

    ALright, i dont know if this is where to post it but here it goes.

    I am making a p2p file sharing program, an I want ot know if I make the program in MFC (its in c++) if i can make it run off of a linux server?
    To get somthing out of life, you always need to be persistant.

  2. #2
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Unless you are using something like Lindows that emulates a Windows enviroment and its files, then no, I dont think so.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  3. #3
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444
    is the linux box running
    Wine?
    I am so skeptical, I can hardly believe it!
    PS I am not a 'hyperactive member' I am a cool, calm, and collected member

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You're unlikely to be able to run it on Unix.

    Your best bet is to separate the OS-dependent parts of the code, so you can create separate clients with as much code reuse as possible.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    To expand on what parksie said, most MFC stuff can be done (Some times with a little work), using standard C/C++ coding. With some work you could rewrite it to Linux
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If you do the interface with GTK, you can build on Windows as well.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    A p2p file sharing app would be a good candidate to build on the Mozilla framework, then you get cross-platform for free.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Yes, you're right. That would be a better option -- then you get all the networking as well
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    If I'll ever do a Mozilla-based app it'll be such a thing.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    oregon
    Posts
    88
    well the linux server is running on ssh2 not X so im trying to figure out how i am going to runa windows based server now. an do it from there.
    To get somthing out of life, you always need to be persistant.

  11. #11
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    SSH is just a communications protocol. X is client/server, so you don't have to be sitting at that machine.

    All you need is an X server on whatever you're connecting to it with (be it Windows, GNU/Linux, Solaris, Irix, whatever) and you can run X-based programs remotely (of course, they execute on the server).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

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



Click Here to Expand Forum to Full Width