🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement