Solved [Help] Message box did not pop up when the DLL was injected

Hexui Undetected CSGO Cheats PUBG Accounts

justintcs

Newbie
Full Member
Jul 13, 2012
30
302
0
There's no message pop up when the dll was injected
:'(


C++:
#include "stdafx.h"
#include <windows.h>



int main()
{
  MessageBoxA(0,"Message body", "Message title", MB_OK );
}
 

konsowa

Coder
Full Member
Nobleman
May 24, 2012
178
753
2
try doing this:
C++:
BOOL WINAPI DllMain( __in HINSTANCE hinstDLL, __in DWORD fdwReason, __in LPVOID lpvReserved)
{
  if(fdwReason==DLL_PROCESS_ATTACH)
     MessageBoxA(0,"Message body", "Message title", MB_OK );
}
 

justintcs

Newbie
Full Member
Jul 13, 2012
30
302
0
Konsowa said:
try doing this:
C++:
BOOL WINAPI DllMain( __in HINSTANCE hinstDLL, __in DWORD fdwReason, __in LPVOID lpvReserved)
{
  if(fdwReason==DLL_PROCESS_ATTACH)
     MessageBoxA(0,"Message body", "Message title", MB_OK );
}
I got this error
C++:
1> Message Box.cpp
1>Message Box.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
1>c:\users\justin\documents\visual studio 2010\Projects\Message Box\Release\Message Box.dll : fatal error LNK1169: one or more multiply defined symbols found
1>
1>Build FAILED.
1>
 
Community Mods