LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

redeclaration of functions in CVI extcode.h files

I am getting following redeclaration errors.
I have included extcode.h and toolbox.h files in my project.
1. TH_REENTRANT int32 Pin(int32, int32, int32);
2. SwapBlock(void *src, void *dest, int32);
3. BinSearch(UPtr, int32, int32, UPtr, CompareProcPtr);

I need both of these files in my project.
Please help.
Thanks.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 4
(3,667 Views)
The header file extcode.h is NOT a CVI header file. It is a header file provided by LabVIEW that is for building Code Interface Nodes (CINs). If you are trying to build CINs in CVI, you should follow the instructions in the LabVIEW\cintools\cvilvsb.h file and include it instead of extcode.h. If you aren't trying to build a CIN, you should not be #including this file in the project.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 4
(3,666 Views)
Is this documented anywhere?  I had a horrible time finding this answer.  You would think there would be documentation for connecting two NI products.  If anyone can help it would be greatly appreciated.

Thanks,

CP
0 Kudos
Message 3 of 4
(3,509 Views)
Hey CP,

The place we usually recommend customers to look for building CINs is in the Using External Code in LabVIEW manual.  This explains in detail how to create CINs and call dlls.  Hope this helps!
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,484 Views)