We cannot find Windows.h

Our team has never used image processing before. We are using windriver and the code generated for us by the NI Vision assistant and the code for processing the axis camera image was exported as c so we changed it to c++. We then changed the import of the machine file to #include “nimachinevision.h”
but when we build the code we get, #include <windows.h>, windows.h: No such file or directory. Where can I find the windows.h file?

You will need to download the Microsoft Windows SDK. http://www.microsoft.com/en-us/download/details.aspx?id=8279

Thank you :cool:

How do we apply it to windriver?

Try commenting out the “windows.h” include and adding the following:

#include <stdio.h>

If I remember correctly, the function included in windows.h and used in the image processing code is “sprintf”, which is also available in “stdio.h”. (It makes sense that windows.h isn’t available since you’re deploying the code on VxWorks, not Windows)