duongthaiha wrote:
> 
> 
> Hi
> Sorry for a new bee question.
> 
> I am trying to have a method
> 
> void output2file(char* filename)
> 
> but when i pass the parameter, the parameter is string.
> Is there any way to change from string to char*

I assume that you are using C++ std::string.  In that case you can make 
use of the c_str() member function of std::string.  For example,

string w;
const char *p = w.c_str();

Rgds,
anna

> 
> Thanks a lot
> I reall do appreciate your help
> 
> Best regard
> 

Reply via email to