Code For MessageBox [Solved]
dev c++ has the same syntax as vstudio
I always thought the main function was supposed to return an integer.
Teh Lulz ?
This was the initial error he posted:
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
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
@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
Hassan hes been helped me out

request to close

This thread is closed for replies.
Similar Threads
Call of Duty Modern Warfare 2 Help[SOLVED]question| codes for consoleXL 6 CrossFire Help[SOLVED] « I need New code for Registry Booster »
12 Visual Basic Programming[Help] Codes for adding sites to be blocked in Host File [Solved]
7 Visual Basic Programming[Help] Codes for Downloading Progress[Solved]
5 Call of Duty Black Ops GSC Modding Help & DiscussionCan someone fix this code for me? Or tell me what I'm doing wrong?
5

![=]](/forum/images/emotions/=].gif)