Message Box Problem
hello, i''ve wrote this small program to display a message box. but i always get a warning ... why ?
#include
int STDCALL
WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
{
MessageBox (NULL, "Hello, Windows!", "Hello", MB_OK);
return 0;
}
thanks, DrGila
Former Microsoft XNA and Xbox MVP | Check out my blog for random ramblings on game development
if it''s "formal parameter xxx not used," just put the names of all the parameters inside your function, like so:
WinMain(...)
{
hInst; hPrev; lpCmd; nShow;
}
That will trick the compiler into thinking they''re being used.
Mason McCuskey
Spin Studios - home of Quaternion, 2000 GDC Indie Games Fest Finalist!
www.spin-studios.com
WinMain(...)
{
hInst; hPrev; lpCmd; nShow;
}
That will trick the compiler into thinking they''re being used.
Mason McCuskey
Spin Studios - home of Quaternion, 2000 GDC Indie Games Fest Finalist!
www.spin-studios.com
Founder, Cuttlefish Industries
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement