Re: CWnd::MessageBoxA does not take 4 parameters

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Antonio Dias (antonio.r.dias_at_netvisao.pt)
Date: 01/28/05


Date: Fri, 28 Jan 2005 20:11:13 -0000

if you search on msdn you can find what the parameters are and if you can
use NULL on any of them. it's easy to find that kind of thing...

but anyway, the extra parameter in the SDK version, it's the parent HWND
of the messagebox (i believe). if you use MFC's CWnd::MessageBox you are
already saying tha the parent window of the messagebox is the CWnd (the
current window from where you are calling the messagebox)

On Mon, 24 Jan 2005 14:02:14 +0800, Jacky Luk <jl@knight.com> wrote:

> In the Direct3D extras, mview uses SDK MessageBoxA with 3 parameters,
> how to
> convert them to MFC MessageBoxA with 4 parameters equvilence,
> CD3DApplication class is a SDK based class and I'm mixing code between
> mview
> and MFC
> Is it advisable to cancel one of the parameters without tearing the
> application apart?
> Thanks
> Jack
>
> "Jacky Luk" <jl@knight.com> ¼¶¼g©ó¶l¥ó·s»D
> :e6laDidAFHA.1260@TK2MSFTNGP12.phx.gbl...
>> Hi all,
>> I have got a class derived from CFormView and CD3DApplication... a
> compiler
>> error said that CWnd::MessageBoxA does not take 4 parameters...
>> This was a cloning process but the original source code seemed to
>> compile
>> fine. Any comments are welcome! Thanks
>> Jack
>>
>>
>
>

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


Relevant Pages

  • Re: Linux printf funny
    ... programming error. ... MessageBox() is just a function that displays the strings supplied, and is in fact a replacement for the Windows message box as in the program's earlier incarnation as a windows GUI program before it got converted to console. ... The compiler is seeing a constant where it shouldn't, and/or has modified the type of a variable to double.. ... Another possibility is a bug that modifies ScaleFactor, ...
    (comp.arch.embedded)
  • Re: Problem with MessageBox
    ... with the compiler. ... > I think the problem is that you are showing the MessageBox from ... > Form_Load instead of in LoadSettings. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: CWnd::MessageBoxA does not take 4 parameters
    ... > Is it advisable to cancel one of the parameters without tearing the ... >> This was a cloning process but the original source code seemed to ...
    (microsoft.public.vc.language)