Advertisement

Message Box Problem

Started by January 26, 2000 10:19 AM
1 comment, last by DrGila 24 years, 8 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
What''s the warning you get?

Breakaway Games

Former Microsoft XNA and Xbox MVP | Check out my blog for random ramblings on game development

Advertisement
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