Hi Thanks a lot
I have tried and there is error. C++ can not convert from char* to const char* I have to use the const_cast <char*> and it work Thanks once more Annamalai Gurusami wrote: > > 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 > > > > [Non-text portions of this message have been removed]
