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

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

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>
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods