Menu

Porting C from Linux to Windows

Anonymous
2005-03-08
2012-09-26
  • Anonymous

    Anonymous - 2005-03-08

    I urgently need to convert a small C program from Linux to Windows, but I am a total novice with Dev-C++, or any visual C, in fact. The linux program just takes 2 args and outputs a string, so all I really need is a couple of text boxes to replace argv[1] & [2], an OK button, and maybe another textbox to display the result.

    Creating a new project gives me a default blank window called "Window App", but how can I modify this as above and incorporate my linux code?

    I have no idea where to start. Can anyone advise?

    Sorry, I know this must be very basic but I don't know how and am really pressed for time.

    Thanks

     
    • tim

      tim - 2005-11-05

      the following snippet will work for outputing the result,
      if you check the windows api, there may be an InputBox type function for the entry.(or someone on the forum might know)
      errmess is a string.

      include <windows.h>

       MessageBox(0,errmess,&quot;Error, Picture too big&quot;,MB_ICONHAND);
      
       

Log in to post a comment.