5 messages in com.mysql.lists.plusplusRe: convertion probleme from string t...
FromSent OnAttachments
essafi_adel31 May 2002 00:55 
adelpfe31 May 2002 00:56 
Jan Hoeve31 May 2002 02:14 
Mário Henrique Cruz Torres03 Jun 2002 09:50 
Mário Henrique Cruz Torres03 Jun 2002 13:30 
Subject:Re: convertion probleme from string to char *
From:Mário Henrique Cruz Torres (mar@mitus.com.br)
Date:06/03/2002 01:30:23 PM
List:com.mysql.lists.plusplus

Hello, I use a little function to solve this problem in mysql++ .

char* c_string(const string& s){ char* p = new char[s.length() + 1]; s.copy(p, string::npos); p[s.length()] = 0; return p; }

char *temp = c_string(row[ "YOUR COLUMN"].c_str());

MArio H.C.T.