locked
Tips to migrate C programs from unix to windows platform RRS feed

  • Question

  • Hi all,

    I need to migrate some C programs running on UNIX like a services to Windows platform and I don't know which are the differences between programs writed to run on UNIX (Solaris) or writed to run on Windows machine. Just I need some tips.
    Basically, the programs provides TCP services to comunicate windows clients with UNIX host.
    Any help would be appreciated

    Thanks in advance
    Hernán
    • Moved by Harry Zhu Friday, April 16, 2010 3:00 AM (From:Visual C# Language)
    Tuesday, April 13, 2010 6:30 PM

Answers

All replies

  • Welcome to MSDN, dear.

    Do that program some PInvoke (Platform Invoke) for example calling a kernel method from UNIX platform? because Windows Platform API aren't same as UNIX. e.g. FindWindowEx function in Windows isn't same with UNIX equal function.

    Tuesday, April 13, 2010 7:20 PM
  • I haven't PInvoke in my UNIX programs. My doubs round about if the essential socket function work fine or the same manner on both platforms, and if only need to compile on windows my unix code or if is needed make changes in the source code.

    Tuesday, April 13, 2010 8:26 PM
  • Hi,

    The question relating to c programs is beyond the scope of this forum, but I have not idea where you can post the question to, I'm moving the thread to: where is the forum for... forum.

    The experts there will direct you to the right forum for the question.

    Harry


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Friday, April 16, 2010 2:59 AM
  • Hi,

    The question relating to c programs is beyond the scope of this forum, but I have not idea where you can post the question to, I'm moving the thread to: where is the forum for... forum.

    The experts there will direct you to the right forum for the question.

    Harry


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Friday, April 16, 2010 2:59 AM
  • I suggest you to visit the microsoft.public.win32.programmer.networks newsgroup.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    Friday, April 16, 2010 11:32 PM