Witam. Mam problem z funkcją messageboxw.
Pisze w C++ builder 10.2
Kod:
Application->MessageBoxW( NULL, "Error 404 Proszę zgłosić administracji", "Erorr", MB_OK+MB_ICONSTOP );
i wywala błedy.
Błędy:
Checking project dependencies...
Compiling Project4.cbproj (Release, Win32)
bcc32 command line for "Unit1.cpp"
c:\program files (x86)\borland\radstudio10.2\bin\bcc32.exe -DNDEBUG -DUSEPACKAGES -n.\Win32\Release -I"c:\program files
(x86)\borland\radstudio10.2\include\windows\vcl";"c:\program files (x86)\borland\radstudio10.2\ObjRepos\EN\Cpp";"c:\program files
(x86)\borland\radstudio10.2\include";"c:\program files (x86)\borland\radstudio10.2\include\dinkumware";"c:\program files
(x86)\borland\radstudio10.2\include\windows\crtl";"c:\program files (x86)\borland\radstudio10.2\include\windows\sdk";"c:\program files
(x86)\borland\radstudio10.2\include\windows\rtl";"c:\program files (x86)\borland\radstudio10.2\include\windows\vcl";"c:\program files
(x86)\borland\radstudio10.2\include\windows\fmx";C:\Users\Public\Documents\Embarcadero\Studio\19.0\hpp\Win32;
C:\Users\Public\Documents\Embarcadero\Studio\19.0\hpp\Win32 -Q -c -tR -tM -tU -tW -C8 -o.\Win32\Release\Unit1.obj -w-par -O2 -v- -vi
-H=.\Win32\Release\Project4.pch -H Unit1.cpp
[bcc32 Error] Unit1.cpp(65): E2034 Cannot convert 'wchar_t const[6]' to 'int'
Full parser context
Unit1.cpp(62): parsing: void _fastcall TForm1::Button2Click(TObject *)
[bcc32 Error] Unit1.cpp(65): E2342 Type mismatch in parameter 'Flags' (wanted 'int', got 'const wchar_t *')
Full parser context
Unit1.cpp(62): parsing: void _fastcall TForm1::Button2Click(TObject *)
[bcc32 Error] Unit1.cpp(65): E2227 Extra parameter in call to _fastcall TApplication::MessageBoxW(const wchar_t *,const wchar_t *,int)
Full parser context
Unit1.cpp(62): parsing: void _fastcall TForm1::Button2Click(TObject *)
Failed
Elapsed time: 00:00:00.8