0

Hi,

I have this code in C++ and it is not compiling in a terminal window on a Fedora Linux machine.

Please help, thanks a lot

#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
    LPSTR lpCmdLine, int nCmdShow)
{
    MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
    return 0;
}
3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Nick Evan
0

This is Windows code, not Linux.

Hi,

Thanks a lot for the reply, I am sorry to post the code since I am not aware of the fact that it belongs to Windows, Could you please tell me as to what I should do in order to find code that has buttons etc and can work in Linux terminal?

Any particular web site or books for the purpose?

Thanks a lot my friend for your time, appreciated.........

1

Thanks a lot for the reply, I am sorry to post the code since I am not aware of the fact that it belongs to Windows

The line #include <windows.h> didn't ring a bell ? :icon_wink:

, Could you please tell me as to what I should do in order to find code that has buttons etc and can work in Linux terminal?

My personal favorite is wxWidgets

Votes + Comments
BONG!!!!!!!!!
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.