I have a function
Is the last two lines correct. Somehow testing doesnot seems ok !Code:func(BSTR * path) { // From path paramter I use the path. //Now I generate some lets say list of names separated by newline string output = "Bob\n Rob \n Lilly \n"; // Now client wants the path to be modified with the output SysFreeString(*path); *path= SysAllocStringByteLen(output.c_str(), output.size()); }