🎉 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

Started by
1 comment, last by DrGila 24 years, 5 months ago
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
Advertisement
What''s the warning you get?

Breakaway Games

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
Founder, Cuttlefish Industries
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