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:
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).
sprintf(Pxi6509::DeviceDescriptor, "PXI1Slot%i", DeviceNo);
I have defined DeviceDescriptor in the header file as:
Is there anything wrong with the definition?
static String* DeviceDescriptor