Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5357

Always getting "Invalid Argument" error on CNV functions

$
0
0

Hallo,

I'm quite new to LabView/LabWindows/CVI. I'm trying to create a very simple C++ application that will exchange Network Shared Variables with a LabView VI.

But no matter which function I call, I always get the error "Argument is invalid". For example when creating a browser to browse for available variables:

 

int _tmain(int argc, _TCHAR* argv[])
{
  CNVBrowser* browser = NULL;
  int retVal = CNVCreateBrowser(browser);

  if(retVal != 0)
  {
    const char* error = CNVGetErrorDescription(retVal);
    std:: cout << error;
  }//end if

  if(browser != NULL) CNVDisposeBrowser(*browser);

  return 0;
}

 This gives me a return value of -6393 which means "Argument is invalid".

I suppose there is something very basic I'm doing wrong. Can anyone help me out?

 

Thanks!


Viewing all articles
Browse latest Browse all 5357

Trending Articles



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