Hello I need some help

Posts 1–11 of 11 · Page 1 of 1
Hello I need some help
Slot5.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
When I press the Build Solution i got this Error can someone help me ?

Code:
// Slot51.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include <stdio.h>
#include <Windows.h>
#include "Pointers.h"
#include "Offsets.h"

HANDLE Warrock;
DWORD* Player = ( DWORD* ) PlayerPointer;
DWORD* Server = ( DWORD* ) ServerPointer;

void NoFallDamage()
{
	*(float*) ( Player + FallDamage ) = -20000;
}
void Slot()
{	
			*(long*)(  ServerPointer + Slot_5)=1;
 
}
void CodeThread()
{
	for(;;)
	{
		if ( *Player )
		{
			
			NoFallDamage();
			
		}

		if ( *Server ) 
		{
			Slot();
		}
		Sleep ( 200 );
	}
}

BOOL WINAPI DllMain ( HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved )
{
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA ( NULL, "DLL was injected successfully.", "SeptFicelle", MB_OK ); 
MessageBoxA ( NULL, "Thanks for using my source code. =)", "SeptFicelle", MB_OK ); 
CreateThread ( 0, 0, ( LPTHREAD_START_ROUTINE ) CodeThread, 0, 0, 0 ); 
}
return TRUE;
}
Code:
Offsets.h
#define FallDamage			0x103A4
#define Slot_5				0x1021A4


Pointers.h
#define PlayerPointer		0xC62388
#define ServerPointer		0xB5D0F8
Quote Originally Posted by Mar1 The Best View Post
Slot5.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
When I press the Build Solution i got this Error can someone help me ?
Add this one
BOOL WINAPIA DllMain /* Probably done wrong 'DllMain'*/ (HINSTANCE hMODULE,DWORD AeroMan,LPVOID lpvReserved)
{
if(AeroMan == DLL_PROCESS_ATTACH)
{
Create...
}
}

//You defined Dllmain wrong i guess
need to see it before i will be able to fix it

EDIT: Post your complete source here
Quote Originally Posted by AeroMan View Post
Add this one
BOOL WINAPIA DllMain /* Probably done wrong*/ (HINSTANCE hMODULE,DWORD AeroMan,LPVOID lpvReserved)
{
if(AeroMan == DLL_PROCESS_ATTACH)
{
Create...
}
}

//You defined Dllmain wrong i guess
need to see it before i will be able to fix it
I am Trying to make a SLot5 & NFD Hack I will edit my thred to my Code
Quote Originally Posted by Mar1 The Best View Post
I am Trying to make a SLot5 & NFD Hack I will edit my thred to my Code
Post your complete source, so i can see the exact problem but i guess its the problem i fixed in previous post
Quote Originally Posted by AeroMan View Post
Post your complete source, so i can see the exact problem but i guess its the problem i fixed in previous post
I am trying what you tell me to do 1 Min

can you fix it I think that I made something wrong
Project > Proporties > Configuration properties > Character set > use multi byte set > F7 > Have fun

Also try inplace of "hModule" -> "hMODULE"
Quote Originally Posted by Mar1 The Best View Post
No it didn't work
you got teamviewer?
I PM the ID and Pass


Edit :
Did you got them ?
Moving to the source section
Last edit:

Try:

#define OFS_FallDamage 0x103A4
#define OFS_Slot_5 0x1021A4
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us