04-15-2013 11:42 PM
Just such a syntax : "CNVNewVariable("\\\\localhost\\cnvtest.exe", "mycnv");" it always report error. which argument is wrong?
David
04-15-2013 11:46 PM
04-15-2013 11:54 PM
The wrong parameter is possibly the network variable path, which is not the name of the executable but the one you have created either programmatically with CNVNewProcess or in the iteractive application.
04-16-2013 01:17 AM
Hi Roberto,
I use the following code:
char process[] = "mymcnvtest";
int main ()
{
char path[256];
CNVNewProcess(process);
CNVStartProcess (process);
strcpy(path, "\\\\192.168.0.62\\");
strcat(path, process);
CNVNewVariable(path, "mycnv");
CNVDeleteProcess (process);
...
}
the CNVNewVariable() still report the argument is invalid error.
04-16-2013 08:43 AM
The first argument to CNVNewProcess is a machine relative path - meaning, you do not specify the machine's name or IP address but rather, <process>\<folder>\<sub-folder>\<sub-sub-folder>\<etc>.
So, in your example, the call would be:
CNVNewVariable(process, "mycnv");
04-16-2013 11:26 PM
Now it is working. Thanks Mohan.