Closed Mirgosoft closed 7 years ago
find solution: project -> properties -> configuration properties -> general -> character set -> change to "not set" but on press f9 - no logging (Draw / DrawInstanced / DrawIndexedInstanced / DrawInstancedIndirect / DrawIndexedInstancedIndirect) ...
Pls, help. At the beginning I had 3 errors in lines:
298: hD3D11DLL = GetModuleHandle("d3d11.dll"); (need type LPCWSTR)
357: MessageBox(hWnd, "Failed to create directX device and swapchain!", "Error", MB_ICONERROR); (need types LPCWSTR)
403: GetModuleFileName(hModule, dlldir, 512); (need types LPWSTR for var dlldir)
I made necessary changes: 298: hD3D11DLL = GetModuleHandle(L"d3d11.dll"); 357: MessageBox(hWnd, L"Failed to create directX device and swapchain!", L"Error", MB_ICONERROR); 403: GetModuleFileName(hModule, (LPWSTR)dlldir, 512);
But in games only the menu works. All in hookD3D11DrawIndexed() not working. I tried many decisions. Tried to insert only countnum++; :
But hookD3D11DrawIndexed() still not works ( hookD3D11Map() and hookD3D11VSSetConstantBuffers() too ).
I suspect that the pContextVTable doesn't work correctly. P.S. MH_CreateHook((DWORD_PTR*)pContextVTable[12], hookD3D11DrawIndexed, reinterpret_cast<void>(&phookD3D11DrawIndexed)) return** MH_OK ...
Use Visual Studio Community 2015 Last update GeForce GTX 1060