error LNK2005 HELP PLEASE

Posts 1–11 of 11 · Page 1 of 1
error LNK2005 HELP PLEASE
I`ve a Error Code in Visual C++ 2010
and i dont get whats wrong ...
Could anyone help me please


1>test.obj : error LNK2005: _DllMain@12 ist bereits in dllmain.obj definiert.
1>c:\users\----\documents\visual studio 2010\Projects\test\Debug\test.dll : fatal error LNK1169: Mindestens ein mehrfach definiertes Symbol gefunden.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========



Steh ich nicht.png20 KB · 5 downloads
same problem
This message "error LNK2005: _DllMain@12 ist bereits in dllmai.ogj definiert" means that you have somewhere in your code a multiply definition, look at this:

Originally Posted by Philong Nguyen
Try to find any multiply definitions
This would be for example this error:

Code:
#define hack 123

DWORD hack;
As you can see there are 2 same definitions and the compiler goes crazy if he sees this
(http://www.mpgh.net/forum/243-crossf...ml#post5491183)
i´ve the problem with this line again

// test.cpp : Definiert die exportierten Funktionen für die DLL-Anwendung.
//

#include "stdafx.h"


#include <Windows.h>
#include <stdio.h>
#include "Addresses.h"


void HackFunctions()
{
for(;
{
DWORD Server = *(DWORD*)( ADR_ServerPointer );
DWORD Player = *(DWORD*)( ADR_PlayerPointer );

/******************************[ AntiKick ]******************************/
{
if( Player != 0 )
{
*(BYTE*)( Server + OFS_AntiKick ) = 0;
}
}

/******************************[ Bandages ]******************************/
{
if( Player != 0 )
{
*(BYTE*)( ADR_Bandages ) = 1;
}
}

/*****************************[ QuickRepair ]****************************/
{
if( Player != 0 )
{
*(DWORD*)( Player + OFS_FastRepair ) = 9999;
}
}

/*****************************[ Fast Reload ]****************************/
{
if( Player != 0 )
{
*(BYTE*)( Server + OFS_FastReloadPX ) = 1;
*(float*)( ADR_FastReload ) = 9999;
}
}

/***************************[ Extra Clip 1&2 ]***************************/
{
if( Player != 0 )
{
*(BYTE*)( ADR_ExtraAmmo1 ) = 1;
*(BYTE*)( ADR_ExtraAmmo2 ) = 1;
}
}

/******************************[ 5th Slot ]******************************/
{
if( Player != 0 )
{
*(BYTE*)( Server + OFS_5thSlot ) = 1;
}
}

/***************************[ Ladder Quickly ]***************************/
{
if( Player != 0 )
{
*(double*)( ADR_LadderQuickly ) = 200;
}
else
{
*(double*)( ADR_LadderQuickly ) = 40;
}
}

/****************************[ Player Speed ]****************************/
{
if( Player != 0 )
{
*(double*)( ADR_Speed ) = 350;
}
}


/******************************[ Headshots ]******************************/
{
if( Player != 0 )
{
if( GetAsyncKeyState( VK_RBUTTON ))
{
*(double*)( ADR_BoneShot ) = 1235;
}
else
{
*(double*)( ADR_BoneShot ) = 1237;
}
}
}

/********************************[ Scope ]********************************/
{
if( Player != 0 )
{
if( GetAsyncKeyState( VK_RBUTTON ))
{
*(DWORD*)( ADR_Scope ) = 1;
}
else
{
*(DWORD*)( ADR_Scope ) = 5;
}
}
}


/****************************[ SuperNoSpread ]****************************/
{
if( Player != 0 )
{
*(double*)( ADR_SuperNoSpread ) = 0;
}
else
{
*(double*)( ADR_SuperNoSpread ) = 5;
}
}

/******************************[ NoRecoil ]******************************/
{
if( Player != 0 )
{
*(float*)( Player + OFS_NoRecoil1 ) = 0;
*(float*)( Player + OFS_NoRecoil2 ) = 0;
*(float*)( Player + OFS_NoRecoil3 ) = 0;
}
}

/******************************[ SuperJump ]*****************************/
{
if( Player != 0 )
{
if( GetAsyncKeyState( VK_CONTROL ))
{
*(float*)( Player + OFS_Z ) = 2500;
}
}
}

/***************************[ No Fall Damage ]***************************/
{
if( Player != 0 )
{
*(float*)( Player + OFS_NoFallDamage ) = -999999;
}
}

Sleep(100);
}
}

BOOL WINAPI DllMain(HINSTANCE hModule,DWORD dwReason,LPVOID lpvReserved)
{
if( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(0,0,(LPTHREAD_START_ROUTINE)HackFunct ions,0,0, 0);
}
return true;
}
Simply Delete ur "DllMain" and rewrite it and its fixed
Big Thanks <3
Quote Originally Posted by theed View Post
Big Thanks <3
Enjoy <3
NICE FOR HELPING /WTF
Good Job AeroMan
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us