The forums are currently locked and only available for read only access
Dani
Kommer du hit ofta?
Medlem
Forum Posts: 1854
Member Since:
February 17, 2004
February 17, 2004
Offline
Försöker testa programmering med winapi men kompilatorn klagar. Testade i Visual st. C++ 6 och i Borland. Denna simpla kod klagar den på:
#include
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpszArgument, int nWindowStyle)
{
MessageBox(HWND_DESKTOP,"Hello World","This is a simple Windows Program",MB_OK);
return 0;
}
Då klagar den på att: Unresolved external '_main' referenced from C:borlandbcc55libc0x32.obj
Headern windows.h finns i katalogen include.
Det funkar ju om man tar bort Winapi och använder main istället men ibland vill man göra anrop på argumenten i Winapi. Hur får man det att fungera med Winapi?
/Dani
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1030
Currently Online:
Guest(s) 459
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Andreas Galistel: 16287
Jonas Klar: 15897
ilg@dd: 10810
Nyhet: 10607
Mind: 10550
Ctrl: 10355
Gueno: 9881
Guest: 9344
Snorch: 8881
Callister: 8468
Newest Members:
PetrbonFU PetrbonFU
Karine Bembry
Dolores Mcdaniels
Anibal McLeish
Francisca Alt
Alfie Everhart
Lester Huitt
Orlando Jorgensen
Mikki Lundgren
Dakota Kozlowski
Forum Stats:
Groups: 11
Forums: 59
Topics: 146630
Posts: 1300967
Member Stats:
Guest Posters: 2
Members: 79425
Moderators: 0
Admins: 11
Administrators: nordicadmin, Henrik Berntsson, Anton Karmehed, Carl Holmberg, Joel Oscarsson, Mikael Linnér, Mikael Schwartz, Andreas Paulsson, Nickebjrk, Mattias Pettersson, EmxL
© Simple:Press —