Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   We cannot find Windows.h (http://www.chiefdelphi.com/forums/showthread.php?t=113808)

admrialkunkka 17-02-2013 19:54

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?

connor.worley 17-02-2013 20:33

Re: We cannot find Windows.h
 
You will need to download the Microsoft Windows SDK. http://www.microsoft.com/en-us/downl...s.aspx?id=8279

admrialkunkka 18-02-2013 11:42

Re: We cannot find Windows.h
 
Thank you :cool:

admrialkunkka 18-02-2013 12:19

Re: We cannot find Windows.h
 
How do we apply it to windriver?

Itamar 18-02-2013 21:28

Re: We cannot find Windows.h
 
Try commenting out the "windows.h" include and adding the following:
Code:

#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)


All times are GMT -5. The time now is 13:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi