All pastes #562731 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-12 21:49 UTC
rendered paste body
-MT WriteFile.o -MD -MP -MF ".deps/WriteFile.Tpo" -c -o WriteFile.o WriteFile.cpp; \
then mv -f ".deps/WriteFile.Tpo" ".deps/WriteFile.Po"; else rm -f ".deps/WriteFile.Tpo"; exit 1; fi
WriteFile.cpp: In member function ‘void WriteFile_i::ProcessData()’:
WriteFile.cpp:131: error: cannot convert ‘standardInterfaces_i::realChar_p’ to ‘char’ in assignment
make: *** [WriteFile.o] Error 1
[hvolos@mprgadmin WriteFile]$         

void WriteFile_i::ProcessData()
{
    DEBUG(3, WriteFile, "ProcessData() invoked")



    PortTypes::CharSequence *I_in_0(NULL);
    CORBA::UShort I_in_0_length;

    while(1)
    //{
        dataIn_0->getData(I_in_0);

        I_in_0_length = I_in_0->length();

        /*insert code here to do work*/

        std::fstream fout;
        fout.open("out.txt",std::ios::out);
        char outchar;
        for (unsigned int i=0;i<I_in_0_length;i++){
        outchar=dataIn_0[i];
        fout<<outchar<<" ";
        
        }

        dataIn_0->bufferEmptied();
    }
}