12-06-2005 01:34 PM - edited 12-06-2005 01:34 PM
Message Edited by rjohnson on 12-06-2005 01:41 PM
12-06-2005 02:35 PM
12-22-2006 06:19 PM
12-27-2006 09:54 AM
Hi zou,
Robert was pointing to a Visual C++ include directory. To remove that directory, select Options >> Environment >> Include Paths, choose the appropriate path and then click the Cut button.
Also note that you must include the Windows SDK include files before the LabWindows/CVI include files (i.e. put #include <windows.h> before all other include files). This is needed because there are some conflicts between the LabWindows/CVI libraries and the Windows SDK (some functions have the same names.). The LabWindows/CVI include files contain special macros and conditional compilation to adjust for declarations in the SDK include files.
Best Regards,
12-27-2006 11:32 AM
12-27-2006 11:42 AM
12-27-2006 12:12 PM
12-27-2006 12:45 PM
Hi zou,
LabWindows/CVI is an ANSI C compiler not a C++ compiler. The conio.h header file is provided with Visual C++ not ANSI C. You need to be trying to use LabWindows/CVI built in libraries. In this case instead of conio.h, you should be using the functions found in the stdio.h header file.
The directory you are pointing to contains header files that are causing conflicts with our SDK header files (i.e. winnt.h). One alternative (that may or may not work depending on how the header files are defined --- i.e. for C compilers you need extern "C" statements), you could try including the individual header file in the LabWindows/CVI project. Then reference the header file by saying #include "conio.h". Do this instead of including a path to that directory.
Again, you are trying to use non-ANSI C header files so its recommended that you try and use the header files that are installed with LabWindows/CVI.
Best Regards,