Hey Jim,
Could you help me on how to use std::string in this context? I have never used string classes before. Basically I want my code to do what the following 'sprintf' statement would have done:
Code:
sprintf(Pxi6509::DeviceDescriptor, "PXI1Slot%i", DeviceNo);
The Pxi6509 constructor takes in the DeviceNo (int) parameter as the input, and I want the DeviceDescriptor object to be stored as "PXI1Slot6" (if DeviceNo is 6).
I have defined DeviceDescriptor in the header file as:
Code:
static String* DeviceDescriptor
Is there anything wrong with the definition?
Thanks
Neil