Hello I am having a problem
-
I am using visual c++.net 2010 I get these errors
1>------ Build started: Project: last try, Configuration: Debug Win32 ------
1> main.cpp
1>c:\users\trogd\documents\visual studio 2010\projects\last try\last try\main.cpp(18): warning C4007: 'DllMain' : must be '__stdcall'
1>LINK : fatal error LNK1561: entry point must be defined
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========and here is the code :) also please tell me what is wrong and how I can fix it. thanks!
#include
#define ADR_Test 0xB7CE50
void HackThread()
{
for(;;)
{\*(DWORD\*)ADR\_Test = 100000; } Sleep(180);
}
BOOL DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);} return TRUE;
}
-
I am using visual c++.net 2010 I get these errors
1>------ Build started: Project: last try, Configuration: Debug Win32 ------
1> main.cpp
1>c:\users\trogd\documents\visual studio 2010\projects\last try\last try\main.cpp(18): warning C4007: 'DllMain' : must be '__stdcall'
1>LINK : fatal error LNK1561: entry point must be defined
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========and here is the code :) also please tell me what is wrong and how I can fix it. thanks!
#include
#define ADR_Test 0xB7CE50
void HackThread()
{
for(;;)
{\*(DWORD\*)ADR\_Test = 100000; } Sleep(180);
}
BOOL DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);} return TRUE;
}
wrote:
BOOL DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID)
Should be
BOOL __stdcall DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID)
orBOOL WINAPI DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID)
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles