elishacloud / dxwrapper

Fixes compatibility issues with older games running on Windows 10/11 by wrapping DirectX dlls. Also allows loading custom libraries with the file extension .asi into game processes.
zlib License
1.17k stars 83 forks source link

Cannot open include file: 'detours.h': No such file or directory #18

Closed LethalManBoob closed 6 years ago

LethalManBoob commented 6 years ago

Severity Code Description Project File Line Suppression State Error C1083 Cannot open include file: 'detours.h': No such file or directory dxwrapper C:\Users\XXX\Downloads\dxwrapper-master\DDrawCompat\Experimental\Common\Hook.cpp 11

Maybe retargeting the solutions is causing this but I can't be blamed for having the latest version of windows sdk and visual studio so.. :(

LethalManBoob commented 6 years ago

Severity Code Description Project File Line Suppression State Error RC1015 cannot open include file 'afxres.h'. stub C:\Users\XXX\Downloads\dxwrapper-master\Stub\stub.rc 11.

Another error i get

mirh commented 6 years ago

Did you install the stuff mentioned here?

LethalManBoob commented 6 years ago

I downloaded Detours Version 3.0 Build_343. What should I do with it.

Also do i need both directx sdk's when i have windows 10 sdk?

On 4 March 2018 at 13:35, mirh notifications@github.com wrote:

Did you install the stuff mentioned here https://github.com/elishacloud/dxwrapper#development?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/elishacloud/dxwrapper/issues/18#issuecomment-370229828, or mute the thread https://github.com/notifications/unsubscribe-auth/Ac3uu-sS-eEOJasKC6Sh2995GFjrkXM5ks5ta-2dgaJpZM4SbUuG .

mirh commented 6 years ago

Yes, you absolutely need it. Both of them.

What should I do with it.

Given you miss its include file, I'd suppose add it to your include folders.

LethalManBoob commented 6 years ago

Where are my include folders? I only know how to click the sln file, retarget, clean and build.

elishacloud commented 6 years ago

On my computer Detours is installed to C:\Program Files (x86)\Microsoft Research\Detours Express 3.0\include. If you have it installed somewhere else you can change the path in Visual Studio:

  1. Open the dxwrapper project in Visual Studio.
  2. Click Debug --> dxwrapper Properties
  3. Go to the VC++ Directories folder and you will see an item called Include Directories. You can change the Detours path here.

Note: you will also likely need to change that path to the Directx81 files as well. dxwrapper has dependencies on both of these.

elishacloud commented 6 years ago

Closing this issue since the original question is answered. You can reopen it if you still have an issue.

mirh commented 5 years ago

Btw, isn't detours open now? https://github.com/microsoft/detours

elishacloud commented 5 years ago

Yes, good point. I should add these files into the project to reduce the build dependencies. I will add it to my list. :-)