i have write small noobie library. All functions working good except templated function.
There is my code, when i use this code without library build & work success but when used with library giving unresolved external error.
Project & Library settings
-c++ language standart : latest -multibyte charset -no sdl -MT static -no optimization
template<typename T>
BOOL XMCore::XMHacking::WriteMemory(uintptr_t Address, T Value, bool
Check, HANDLE Process)
{
SIZE_T mWriten;
if (Check && IsBadWritePtr((PFunc)Address, sizeof(T)))
return FALSE;
if (Process == NULL)
*(T*)Address = Value;
else
WriteProcessMemory(Process, (PFunc)Address, &Value, sizeof(T), &mWriten);
if (Process != NULL && mWriten == 0)
return FALSE;
return TRUE;
}