Jump to content

ListAll not working?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Guest_roger_*

Guest_roger_*
  • Guests
Has anyone successfully used the ListAll() function under Linux?

No matter what I do it always returns -1 and fails to fill in the parameters. Immediately before it I'm doing a GetFirmwareVersion() which gives the right result.

Here's the code:

long productIDList[127];
long serialnumList[127];
long localIDList[127];
long powerList[127];
long calMatrix[127][20];
long numberFound;
long res1, res2;

memset(productIDList, 0, 127*sizeof(long));
memset(serialnumList, 0, 127*sizeof(long));
memset(localIDList, 0, 127*sizeof(long));
memset(powerList, 0, 127*sizeof(long));
memset(calMatrix, 0, 127*20*sizeof(long));
numberFound = 0;
res1 = 0;
res2 = 0;

long res = ListAll(productIDList, serialnumList, localIDList, powerList, calMatrix, &numberFound, &res1, &res2);

#2
RobSoftware

RobSoftware

    Programmer

  • Members
  • PipPipPipPip
  • 143 posts
This looks like C++, is that right?
What is the ListAll function?