Old 22nd March 2002, 16:44   #1
Junior Member
Join Date: Jan 2002
Posts: 24
Flawed compiler msg with MB_YESNOCANCEL?

I encountered a compiler error message that was misleading (at least to me) and would encourage you to address it.

I was trying to get
to work to avoid overwriting a user's data. Mea culpa, I was including too many parameters, which the documentation would have made clear if I'd stared at it longer. However, the compiler error message indicated MessageBox could only handle 2-4 parameters. Actually, MB_YESNOCANCEL works with 6 parameters.

See excerpt from message posted for Nsis forum. I got a VERY speedy reply that set me straight, but thought I'd report the compiler message for your attention. Nsis is a terrific piece of software, and I'd like to participate in making it even better!


I have the following statement, which the compiler rejects. Seems like it ought to work. I assume I'm doing something wrong. Any suggestions? How do you make MB_YESNOCANCEL work with only 2-4 parameters?

MessageBox MB_YESNOCANCEL|MB_ICONQUESTION "InvStats.xml exists: Yes=Overwrite No=Keep Cancel=Abort Installation" IDYES StatsOverwrite IDNO StatsNoOverwrite IDCANCEL StatsAbort

MessageBox expects 2-4 parameters, got 8.
Usage: MessageBox mode messagebox_text [return_check label_to_goto_if_equal [return_check2 label2]]
paraclete is offline   Reply With Quote
Old 23rd March 2002, 14:39   #2
Senior Member
Gourou's Avatar
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
put this thing in the right forums, you'll get some real help that way
Gourou is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump