Tjena!
Jag har winXP och dev-c++. Jag får inte denna enkla kod att funka
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
return 0;
}
Jag får felmeddelanden
C:\Dev-Cpp\projekt\32\Namn.o(.text+0x1c) In function `WinMain':
5 C:\Dev-Cpp\projekt\32\Namn.c multiple definition of `WinMain@16'
14 C:\Dev-Cpp\projekt\32\main.o(.text+0xc):C:\Dev-Cpp\projekt\32\main.cpp first defined here
C:\Dev-Cpp\projekt\32\Makefile.win [Build Error] [32.exe] Error 1
Tack
Föresten. Ja, jag sparar filen med ändelsen .c
