I need to use directly some <windows.h> struct and definitions. But since “juce.h” is included i’ve a lot of error with “winnt.h” ?
Is a macro that allow to use some native headers conjointly with juce ?
[ADDITION NOTE]
For information, the system headers are already managed in Juce. My question is about the visibility and use of the system defintions and structures. In VS2008, when I want to use some of these, I need to add a #include <window.h> in my sources files. My problem is not without juce.h included. I don’t know if i’m clear?
you can do that, and as long as you don’t include this header(one containing juce.h ) file before including windows.h, there would be no errors. Or you can put them in this order
#include "windows.h"
#include "juce.h"
But why do you want to use it. Because someday if you edit this header file, the visual studio would compile all the files including the header file.
Simplest thing to do would be to add windows.h as the first header file to be included in the source file.
There is another way out but it’s all left to you, you have to include windows.h in the files you get error, “windows.h” should be the first file included.