View Full Version : Unique name and serial number
July 20, 2011, 13:21:35
I'm using the C++ Wrapper, and the serial number from IC_GetSerialNumber don't match with the serial number in the unique name (for the same camera, of course)
From IG_GetSerialNumber: 554762870
Serial number in the 'unique name': 21110276 (from 'DFx 72BUC02 21110276')
It must be the same, no ?
How I can do to convert it ?
July 20, 2011, 14:02:55
Before I start checking on my own: do you pass a char* to IC_GetSerialNumber()?
printf("Serial is : %s",Serial);
July 20, 2011, 14:13:30
Yes, I pass a char* as in your code.
July 20, 2011, 15:20:00
I answered, but my message isn't here... :confused:
Yes I pass a char* as in your code, and the same string is always returned.
July 21, 2011, 11:13:07
your answer is here. However, I found the solution:
TempSerial = atoi( szSerialNumber);
printf("Serial is : %s",szSerialNumber);
For some reason the serial number is returned as decimal and must be converted.
July 21, 2011, 13:15:07
Great, it works fine !
Thanks very much!
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.