Code For MessageBox [Solved]

Posts 1621 of 21 · Page 2 of 2
Quote Originally Posted by BlackShawarma View Post
still not working. and i tryed on visual studio c++ not working else.
*Sigh*. Do you have team viewer ? That's the only way I can help you now !
dev c++ has the same syntax as vstudio
I always thought the main function was supposed to return an integer.
Quote Originally Posted by Void View Post
I always thought the main function was supposed to return an integer.
Teh Lulz ?

This was the initial error he posted:

Code:
 D:\antihack\dllmain.cpp In function `int main()': 
D:\antihack\dllmain.cpp cannot convert `const WCHAR*' to `const CHAR*'  for argument `2' to `int MessageBoxA(HWND__*, const CHAR*, const CHAR*,  UINT)' 
D:\antihack\Makefile.win [Build Error]  [dllmain.o] Error 1 
Here, he had the main function returning int. But in the code he pasted later, it's not present. I totally ignored it. Now, I am sure, that's why his code is not working.

@BlackShawarma - Try this one:
[highlight=c]#include <iostream>
#include <windows.h>

int main()
{
MessageBox(NULL,L"Injected DLL successfully.",L"Information",MB_OK);
return 0;
}[/highlight]

GJ finding it @Void ;P
Thanks to all.
Hassan hes been helped me out
request to close
Quote Originally Posted by BlackShawarma View Post
Thanks to all.
Hassan hes been helped me out
request to close
No Problem.
/Marked Solved + Closed.
Posts 1621 of 21 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?