1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

auto_ptr result to string

Discussion in 'C' started by farooq124in, Jan 10, 2010.

  1. farooq124in

    farooq124in New Member

    Jan 10, 2010
    Likes Received:
    Trophy Points:
    Hi All,
    I am new to c++ i need to develop a plug in for file maker for that there is a special api, i need to use this for my further work they have used auto ptr but i am finding difficulty in converting text.. this is the code.. u may ask y aim usig all this instaed of smple strings and characters but i have to use this api only...

    class TextAutoPtr : public std::auto_ptr<Text>
    typedef TextAutoPtr UpCaster;
    inline TextAutoPtr ();

    TextAutoPtr resultText;//
    ofstream myfile("D://example.txt");
    std::stringstream converter;// there is value passing from the filemaker.

    converter << resultText;// error in this line binary '<<' : no operator found which takes a right-hand operand of type 'Text'
    string stq= converter.str();
    myfile <<stq;

    Please help me out.

Share This Page