MessageBox error 2

Posts 1–9 of 9 · Page 1 of 1
MessageBox error 2
Code:
MessageBox( NULL, "Inject CrazyVladHACK", "Good!", NULL);
Error:
1 IntelliSense: аргумент типа "const char *" несовместим с параметром типа "LPCWSTR" c:\users\singatulin\documents\visual studio 2010\projects\hg\hg\dllmain.cpp 27 21 hg
2 IntelliSense: аргумент типа "const char *" несовместим с параметром типа "LPCWSTR" c:\users\singatulin\documents\visual studio 2010\projects\hg\hg\dllmain.cpp 27 45 hg
MessageBoxA(0, "Inject CrazyVladHACK", "Good!",0);

try it out
Quote Originally Posted by sdkfnlsa View Post
MessageBoxA(0, "Inject CrazyVladHACK", "Good!",0);

try it out
0 or NULL same shit ......
Quote Originally Posted by bandi12 View Post
0 or NULL same shit ......
i know lol
Quote Originally Posted by bandi12 View Post
0 or NULL same shit ......
coders used to use NULL for pointers/handles so it should be MessageBox(NULL, text, title, MB_OK); :P
Project properties -> configuration properties -> set multi byte character set

or do this instead

MessageBox( NULL, L"Inject CrazyVladHACK", L"Good!", NULL);
MessageBoxA(0,"Text Here" , "Box Name" , 0);
Quote Originally Posted by -Dreamer- View Post
Code:
MessageBox( NULL, "Inject CrazyVladHACK", "Good!", NULL);
Error:
1 IntelliSense: аргумент типа "const char *" несовместим с параметром типа "LPCWSTR" c:\users\singatulin\documents\visual studio 2010\projects\hg\hg\dllmain.cpp 27 21 hg
2 IntelliSense: аргумент типа "const char *" несовместим с параметром типа "LPCWSTR" c:\users\singatulin\documents\visual studio 2010\projects\hg\hg\dllmain.cpp 27 45 hg
put L before the strings:
Code:
MessageBox( NULL, L"Inject CrazyVladHACK", L"Good!", MB_OK);
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us