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;
}
Member Avatar for jencas

This is Windows code, not Linux.

commented: no sh*t :D +28

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.........

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

commented: BONG!!!!!!!!! +36
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.