Hi Everybody,
 
I want to call StoreQuery() from my method Connection::Query().
 
This is what I am doing.
 
NS_IMETHODIMP Connection::Query(const nsAString & query, PRInt32 *ID) {
           StoreQuery((unsigned char *)NS_ConvertUTF16toUTF8(PromiseFlatString(query).get()).get())
.....
...
..
}
 
void StoreQuery(unsigned char* QueryString) {
 .......
}
 
Is this the right way of doing it ? Is there any alternative? I am not much familiar with string classes. Please help me out.
 
Nikhil Kadu

Yahoo! India Matrimony: Find your life partner online.

Reply via email to