Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 654

Depricated C API Macro ? NIPrivatePtr() vs PrivateP()

$
0
0

I am looking for the source of a C macro called "PrivateP()", used in the source code for a DLL I am trying to build (LabPython).  I suspect it dates back to LV 7.1, and that it has been replaced by "NIPrivatePtr()".

 

The project file included with the LabPython source is for VC++ 6. The project file settings implies it was built againt LV 7.1 and Python 2.5.

I am attempting to build the DLL with VC++ 2012 (on Win 7 64b) with LV 2011 32-bit.

 

I do not have LV 7.1 or VC 6.

I can not find 'PrivateP()' in 'LV 2011.../cintools'.

I can not find it defined by Python 2.5.

 

I found 'NIPrivatePtr()' macro in 'LV 2011.../cintools/fundtypes.h'.  Based on contect, is seems like an appropriate macro()

 

I have substituted NIPrivatePtr() for PrivateP(). (source code snippet below), and the project compiles and links successfully.

 

Can anyone confirm that 'PrivateP' was a LabVIEW C API macro?

If so, is 'NIPrivateP()' the replacement?

And, best of all, what was the definition of 'PrivateP()'?

 

Thanks,

Peter

 

P.S. Apologies in advance if this is not technically a Measurement Studio quesiton, but there is no 'C API' forum, this is not a .NET question, and main LV forum seemed light on C API questions.

 

// The following macro ( "PrivateP()" ) can not be found when compiling in VC 2012 (on Win 7 64b) against LV 2011 and Python 2.5.
//PrivateP(lvsnInstance);

 

// This macro is in 'LV 2011.../cintolls/fundtypes.h'
#define NIPrivatePtr(x) typedef struct x ## _t { void *p; } *x

 

// This compiles and links just fine
NIPrivatePtr(lvsnInstance);

 

 


Viewing all articles
Browse latest Browse all 654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>