makina
May 18th, 1999, 04:59 PM
I need to how I can create a string which cat' various data to gether and then pass the variable to a BSTR.
e.g.
BSTR name= Information;
LPSTR test=information;
int i=10
sprintf(test,"the value is %i",i);
BSTR=SysAllocString(test);
This does not work. How can I make it work?
e.g.
BSTR name= Information;
LPSTR test=information;
int i=10
sprintf(test,"the value is %i",i);
BSTR=SysAllocString(test);
This does not work. How can I make it work?