12-27-2013 09:32 AM
Bonjour
I was browsing CVI sample code directory (alway very instructive)
Can someone tell me what is the purpose of legend.c and cklengend.c files in ..\samples\userint\custctrl\legend
For what I understand those are instrument drivers but I believe a sample code would help understand how to use the legend.c functions
At least the other sub directories around have sample project
Loading the legend driver in memory I get some warning on screen while clang compile the source code.
On the other hand cklengend.c cannot be compiled since libprot.h is missing
Here is what I get :
71, 10 fatal error: 'libprot.h' file not found
Looking at the source code of the driver did'nt help that much
The inclusion of libprot.h depends on __LIBPROT__ cklegend.h file
I looked around and it seems __LIBPROT__ is also used in #define in ../toolslib/cviogl.h and ../toolslib/toolbar.h
So my questions are :
Many thanks in advance, Philippe
12-27-2013 10:33 AM
I would assume that this post is still true and this instrument driver is a leftover. If so NI might consider removing it
01-06-2014 11:08 AM
Yes, that post is still true, and this .fp is indeed a leftover.
Normally we remove the examples for obsolete APIs. But, in this case, the .fp itself was installed in the examples folder (this .fp, as well as some others like piechart.fp, are essentially glorified examples that never graduated to become toolslib APIs) and because existing programs might still use this .fp, recent versions of CVI have continued installing it in the examples folder, so that those programs can continue working with newer versions of CVI.
Luis