bumped into the same issue, and followed the thread pointed to at line 133 in juce_win32_NativeIncludes.h.
Instead of editing the qedit.h file, I applied the other solution mentioned in that thread: create a simple dxtrans.h file with the following content:
/* Fixes issue with Windows SDK */
#define __IDxtCompositor_INTERFACE_DEFINED__
#define __IDxtAlphaSetter_INTERFACE_DEFINED__
#define __IDxtJpeg_INTERFACE_DEFINED__
#define __IDxtKey_INTERFACE_DEFINED__and make sure it is on your include path.
This seems to work fine and doesn’t involve editing MS files…
The only thing that’s left is a #pragma message that says: “To compile qedit.h you must install the DirectX 9 SDK, to obtain the dxtrans.h header.”
So, a question and a suggestion:
Can we safely discard that message? Or is it really needed to install the SDK?
Maybe that simple dxtrans.h file can be included somewhere in the JUCE tree so that people don’t get that error?
Again sorry for bothering you experts. I am quite new to this. But how do we put the .h file in the include path? I mean which directory should I place the .h file?
Thanks
Amit
[quote=“jules”]Good trick!
I’m pretty sure the SDK isn’t needed, all that the juce stuff needs are the interface definitions of a few basic objects.
Not sure about adding a file to the source tree, but I’ll certainly add this as a handy tip in the comments. Thanks![/quote]
The folder \juce\src\native\windows would be a good place.
Or you keep it in one of your own directories if you want to keep the juce folders/files 100% intact.
[quote=“jules”]Then you’re not looking in the right directory. I can assure you it’s in there somewhere!
Why would you want to find the include anyway?[/quote]
this is the error i get
Error 1 fatal error C1083: Cannot open include file: 'dxtrans.h': No such file or directory c:\program files\microsoft sdks\windows\v6.0a\include\qedit.h 498 Juce Demo
and earlier on you said
Basically i cant get the Juce Demo to work. Am i doing something wrong.