Working on upgrading my product to new compiler version and new technologies, but Microsoft seem to have made a mess of this...
I am wondering if I can hack it by undefing _WIN32_WINNT to include the Win8 XAudio2 then cloning the DirectX SDK versions inline COM wrappers, but that leaves me exposed if any of the XAudio2 public interfaces actually changed (eg structure layouts or new members).
There must be a proper way to do this... If I can make it on Win8 systems use the OS provided DLL rather than the old DX redist one in a safe manner (and without compiling my code twice, I really want to avoid a separate win8 32/64 desktop exe on top of all the others) that would even better.
OK found a C/C++ include resolution hack/workaround that appears on initial testing to work. If anyone has a proper solution Id love that
Including the macro
#define INCLUDE_XAUDIO2_EXPAND(path) <path>
#include INCLUDE_XAUDIO2_EXPAND(INCLUDE_XAUDIO2)
EDIT: This also appears to break the IDE error detection and auto-completion, it seems to not be able to process that include...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.