Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

corrupt visual c++ makefile for CIN/Labview

Hi.

I'm trying to run a simple Visual C++ file in LabVIEW by using CIN.  However, I'm having trouble compiling the source code in Windows.
I followed the online help and created a Makefile (buffer.mak):

name=buffer
type=CIN
cinlibraries=Kernel32.lib
CINTOOLSDIR=c:\Progra~1\Nation~1\LabVIE~1\cintools\
!include <$(CINTOOLSDIR)\ntlvsb.mak>

I saved this file in the same folder as my .c file, and then when I tried to open the .mak file into Visual c++ I recieved the following prompt:

The project 'buffer.mak' must be converted to the current Visual C++ project format.  After it has been converted, you will not be able to edit this project in previous versions of Visual Studio.  Convert and open this project?

I selected Yes, and then recieved the error:

Cannot load the project due to a corrupt project file


I'm at a loss of what to do, seeing as I can't load the .lsb file into LabVIEW without a working Makefile.

Any amount of help would be greatly appreciated. Thanks.
0 Kudos
Message 1 of 3
(7,353 Views)
Since you are not using the DDK, you should post your question in the LabVIEW board. Also, why are trying to create a CIN? It's much simpler to create a DLL and use the Call Library Function Node. A CIN is somewhat obsolete.
0 Kudos
Message 2 of 3
(7,341 Views)
Here is some information to help you with calling external code in LabVIEW

How to build a CIN code resource?
Using External Code in LabVIEW
Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 3 of 3
(7,326 Views)