From: "John Burton" Newsgroups: comp.os.msdos.djgpp Subject: Re: c++ string question Date: Tue, 14 Apr 1998 21:51:16 +0100 Organization: http://www.bilton.demon.co.uk/ Message-ID: <892587057.6082.0.nnrp-11.9e9808ce@news.demon.co.uk> References: NNTP-Posting-Host: bilton.demon.co.uk MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Lines: 12 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit Precedence: bulk Andrew Deren wrote in message ... > >I have a string object and a function whose parameter is char *, >so how do I send the char* pointer from the string to the object? Are you using the standard library "string" class? if so, the c_str() member function of the string class will return a const char* representation of the string.