Örjan Björk writes:
> Hi, I recently downloaded mysql++ and the tutorial that came with it. Unfortunately
>they used "cout" in the examples...
> they used the following code
> cout>>query.preview();
> and that worked great but...
>
> How do I get the result back as a string which I can store in a CString or char
>variable??
>
> Thanks in advance!
>
> /Kalle B
Use ostrstream class as presented in load_file.cc example.
--
Regards,
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, FullTime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php