c++ - function does not take 0 arguments / error C2660 -


this error i've managed solve once more had problems computer , lost everything. me? lack resolve error, more can not in way.

------ build started: project: ruby, configuration: release win32 ------ main.cpp main.cpp(172): error c2660: 'escanerprocessomemoria' : function not take 0 arguments ========== build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

the line :

    // main.cpp  #include "stdafx.h" #include "mnamecolor.h" #include "mrealhooks.h" #include "mmrsdecryptor.h" #include "minitialcostume.h" #include "md5wrapper.h" #include "zgameclient.h" #include "zpost.h" #include "globais.h" #include "d3d.h" #include "mrscheck.h" #include "gunzexp.h" #include "hack.h" #include "hotkeys.h" #include "contador.h" #include "heuristica.h" void exchange1( dword pointer, byte value ){     dword old;      virtualprotect( (lpvoid)pointer, 1, page_execute_readwrite, &old );     *(byte*)pointer = value;     virtualprotect( (lpvoid)pointer, 1, old, &old ); }  void exchange2( dword pointer, word value ){     dword old;      virtualprotect( (lpvoid)pointer, 2, page_execute_readwrite, &old );     *(word*)pointer = value;     virtualprotect( (lpvoid)pointer, 2, old, &old ); }  void exchange4( dword pointer, dword value ){     dword old;      virtualprotect( (lpvoid)pointer, 4, page_execute_readwrite, &old );     *(dword*)pointer = value;     virtualprotect( (lpvoid)pointer, 4, old, &old ); }  dword todword( ... ){     __asm{         mov eax, dword ptr ss:[esp + 4]         retn     } }  void apply( void ){     md5wrapper mrunnable;      char szmodule[ 256 ];     getmodulefilename( getmodulehandle( null ), szmodule, 256 );      string mpath = string( szmodule );      unsigned long old;     mcolor1detour.detour( (pbyte)0x621c00, (pbyte)getusergradeidcolor );     mcolor1detour.apply();      mcolor2detour.detour( (pbyte)0x4a17a0, (pbyte)getusergradeidcolor );     mcolor2detour.apply();      stagedetour.detour( (pbyte)0x44bf40, (pbyte)stagecreatehandler );     stagedetour.apply();      zappupdatedetour.detour( (pbyte)0x499720, (pbyte)zapponupdate, true );     zappupdatedetour.apply();      sharedtable.detour( (pbyte)0x51eab0, (pbyte)maddsharedcommandtable, true );     sharedtable.apply();      onrestoredetour.detour( (pbyte)0x4e8da0, (pbyte)onrestore, true );     onrestoredetour.apply();      updatecostumes();      //vp     virtualprotect( (lpvoid)0x6282f8, 15, page_execute_readwrite, &old );     memcpy( (lpvoid)0x6282f8, "carregando  ...\0", 15 );     virtualprotect( (lpvoid)0x6282f8, 15, old, &old );      virtualprotect( (lpvoid)0x4c7c47, 3, page_execute_readwrite, &old );     memcpy( (lpvoid)0x4c7c47, "\xc2\x10\x00", 3 );     virtualprotect( (lpvoid)0x4c7c47, 3, old, &old );      virtualprotect( (lpvoid)0x621e1b, 10, page_execute_readwrite, &old );     memcpy( (lpvoid)0x621e1b, "\xeb\x10\xeb\x06\x90\x90\x90\x90\x90\x90", 10 );     virtualprotect( (lpvoid)0x621e1b, 10, old, &old );      virtualprotect( (lpvoid)0x621e2d, 10, page_execute_readwrite, &old );     memcpy( (lpvoid)0x621e2d, "\x7f\xf6\x83\xec\x08\xe9\x6c\xa5\xee\xff", 10 );     virtualprotect( (lpvoid)0x621e2d, 10, old, &old );      virtualprotect( (lpvoid)0x4982c1, 3, page_execute_readwrite, &old );     memcpy( (lpvoid)0x4982c1, "\x08\xf7\x0d", 3 );     virtualprotect( (lpvoid)0x4982c1, 3, old, &old );      virtualprotect( (lpvoid)0x478558, 2, page_execute_readwrite, &old );     memcpy( (pvoid)0x478558, "\xeb\x1b", 2 );     virtualprotect( (lpvoid)0x478558, 2, old, &old );      virtualprotect( (lpvoid)0x4785f8, 2, page_execute_readwrite, &old );     memcpy( (pvoid)0x4785f8, "\xeb\x07", 2 );     virtualprotect( (lpvoid)0x4785f8, 2, old, &old );      virtualprotect( (lpvoid)0x4c7202, 2, page_execute_readwrite, &old );     memcpy( (pvoid)0x4c7202, "\xeb", 2 );     virtualprotect( (lpvoid)0x4c7202, 2, old, &old );      virtualprotect( (lpvoid)0x4a9256, 2, page_execute_readwrite, &old );     memcpy( (pvoid)0x4a9256, "\xeb", 2 );     virtualprotect( (lpvoid)0x4a9256, 2, old, &old );      virtualprotect( (lpvoid)0x4c6a39, 2, page_execute_readwrite, &old );     memcpy( (pvoid)0x4c6a39, "\xe8\xe2\xd3\xff\xff", 2 );     virtualprotect( (lpvoid)0x4c6a39, 2, old, &old );     //end      exchange4( 0x62f17c, todword( &zgameclient::oncommand ) );     exchange4( 0x62b30c, todword( &zcharacter::ondamaged ) );     exchange4( 0x62b204, todword( &zmycharacter::ondamaged ) );     exchangecall( 4728632, todword( &zcharacter::ondamaged ) );     applyhooks( 1 );     exchange4( 0x4366a2, 8900 );     exchange2( 0x40830f, 37008 );     exchange4( 0x40830b, 48955826 );     exchange1( 0x621ca9, 125 );      exchange1( 0x45c742, 0 );     exchange1( 0x4973d8, 56 );     exchange1( 0x45c27a, 0 );     exchange4( 0x41a342, 0x800000 );     exchange4( 0x41aa20, 0x800000 );     exchange4( 0x41aab2, 0x800000 );     exchange4( 0x41b9ba, 0x800000 );     exchange4( 0x41c2ee, 0x800000 );     exchange4( 0x43908a, 0x800000 );     exchange4( 0x4c4b95, 0x800000 );     exchangereplacecall( 0x42af40, (unsigned long)&zpostchannelchat );     exchangereplacecall( 0x481170, (unsigned long)&zpostskill );     exchangereplacecall( 0x42adc0, (unsigned long)&zpostpeerchat );       pgunz = (unsigned char*)heapalloc( getprocessheap(), heap_zero_memory, 2231296 );      if( pgunz ){         for( int n = 0; n < 2231296; n++ ){             pgunz[ n ] = *(unsigned char*)(n + 4198400);         }     } } void escaners(){     escanerprocessomemoria();     escanerprocessosistema(); } int __stdcall dllmain( hmodule hmodule, dword dwreason, lpvoid lpparam ){     disablethreadlibrarycalls( hmodule );     escondeprotecao( hmodule );     if( dwreason == dll_process_attach ){         apply( );         checkfiles();         contararquivos();         verificarhack();         createthread (0,0,(lpthread_start_routine)gunzexp,0,0,0);         createthread (0,0,(lpthread_start_routine)checarhotkeys,0,0,0);         createthread (0,0,(lpthread_start_routine)escaners,0,0,0);         createthread (0,0,(lpthread_start_routine)txtcheckwindow,0,0,0);         }     return true; } 

please me

check declaration of escanerprocessomemoria(), , ensure takes 0 arguments. if not, make sure include headers might have potentially overloaded function 0 arguments.

other that, compiler pretty giving answer. bottom line: check documentation of escanerprocessomemoria()...if there any.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -