Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Shared Variable with Network Variable API from Delphi

Solved!
Go to solution

Hi all,

I'm trying to translate the Network Variable API to Delphi (ninetv.dll, cvinet.h, cvidef.h). Some functions are already working. But I can't find some parameter types in the header files. For example CNVReader of the functions

int CNVCreateReader (const char *networkVariablePathname, CNVStatusCallback statusCallback, void *callbackData, int waitTime, intptr_t reserved, CNVReader *reader);

int CNVRead (CNVReader reader, int waitTime, CNVData *data);

Is CNVReader a pointer to a structure or a handle?

I've tried both "successfully" (returned value 0) but by using it in CNVRead the function it crashes with access violation.

 

Thanks.

0 Kudos
Message 1 of 2
(2,994 Views)
Solution
Accepted by topic author Nitsch

I've found it. The name of the 2. function is "CNVRead" but I tried to call "CNVReader". Smiley Frustrated

0 Kudos
Message 2 of 2
(2,954 Views)