I have a function
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

	*path= SysAllocStringByteLen(output.c_str(), output.size());

Is the last two lines correct. Somehow testing doesnot seems ok !