Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Running National Instruments Examples on Visual Studio 2005 Express for Visual C++

Primary Software: Measurement Studio>>Visual C++ Support
Primary Software Version: 1.0 Service Pack 1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have installed Measurement Studio and included support for Visual C++ for Visual Studio 2005 Express edition.  Why do I get "fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory" when I try to compile examples that are included with the installation of Measurement Studio?

Solution:
This build error occurs because Visual Studio 2005 Express Edition does not support the MFC libraries.  Because the National Instruments Visual C++ Examples are written with the MFC libraries, they will not work with Visual Studio 2005 Express Edition.  This is stated on the Microsoft FAQ website linked here in FAQ 44. 

Related Links:
Microsoft Visual Studio 2005 Express Editions FAQ
KnowledgeBase 444DTFTG: Measurement Studio Support for Visual Studio 2005 Express Editions

Attachments:





Report Date: 01/18/2008
Last Updated: 02/14/2008
Document ID: 4HHCCRXU

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit