I have searched on this site for an answer and the top answer did not work for me, I keep getting this error. I recently (not sure if I did it successfully) imported my project, that has no errors, from my desktop to my new laptop. Whenever I try to run, I get this error in multiple files, using only one as an example :
error C2664: 'DWORD CHackProcess::GetModuleNamePointer(LPSTR,DWORD)': cannot convert argument 1 from 'const char [11]' to 'LPSTR'
This is on these lines:
while (__dwordClient == 0x0) __dwordClient = GetModuleNamePointer("client.dll", __gameProcess.th32ProcessID);
while (__dwordEngine == 0x0) __dwordEngine = GetModuleNamePointer("engine.dll"6, __gameProcess.th32ProcessID);
while (__dwordVGui == 0x0) __dwordVGui = GetModuleNamePointer("vguimatsurface.dll", __gameProcess.th32ProcessID);