Go to Post It's about compressing life into 6 weeks. It's about doing. It's about learning to fail. It's about gracious professionalism. It's about releasing the limitations that we all put on ourselves. It's about thinking outside of the box. It's about growing. - JohnBoucher [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2013, 19:54
admrialkunkka admrialkunkka is offline
Registered User
FRC #2815
 
Join Date: Feb 2013
Location: Columbia
Posts: 9
admrialkunkka is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2013, 20:33
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
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
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2013, 11:42
admrialkunkka admrialkunkka is offline
Registered User
FRC #2815
 
Join Date: Feb 2013
Location: Columbia
Posts: 9
admrialkunkka is an unknown quantity at this point
Smile Re: We cannot find Windows.h

Thank you
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2013, 12:19
admrialkunkka admrialkunkka is offline
Registered User
FRC #2815
 
Join Date: Feb 2013
Location: Columbia
Posts: 9
admrialkunkka is an unknown quantity at this point
Re: We cannot find Windows.h

How do we apply it to windriver?
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2013, 21:28
Itamar's Avatar
Itamar Itamar is offline
Registered User
FRC #1943 (NeatTeam) & FRC #4590 (GreenBlitz)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Israel
Posts: 83
Itamar is an unknown quantity at this point
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)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 15:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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