On Thu, May 13, 2010 at 06:49:23PM +0800, Qzi er wrote:
> I can't understand what you mean ?
> 
> D ?
> 
> On Thu, May 13, 2010 at 6:44 PM, David Tardon <[email protected]> wrote:
> 
> > On Thu, May 13, 2010 at 06:33:12PM +0800, Qzi er wrote:
> > > Can any bady help me ?
> > >
> > >
> > > System : windows
> > >
> > > ///////////////
> > > void main( ) {
> > >
> > >    // Sequence of Sequence of Any
> > >
> > >    Sequence< Sequence< Any > > aValues(2);
> > >
> > >    Sequence< Any > aValues2(2);
> > >
> > >    aValues2[0] <<= (double) 1.1; aValues2[1] <<=
> > > OUString::createFromAscii("Hello");
> > >
> > >    aValues[0] = aValues2;
> > >
> > >    aValues2[0] <<= (double)2.2; aValues2[1] <<=
> > > OUString::createFromAscii("Hi");
> > >
> > >    aValues[1] = aValues2;
> > >
> > >    OUString ouStr;
> > >
> > >    aValues[1][1]>>=ouStr;
> > >
> > >    OString oStr =
> > ::rtl::OUStringToOString(ouStr,RTL_TEXTENCODING_ASCII_US);
> > >
> > >    printf("The string aValue2[1] is %s\n",oStr);
> >
> > printf("The string aValue2[1] is %s\n",oStr.getStr());
> >
> > >
> > >    getchar();
> > >
> > > }
> > >
> >

That you cannot give oStr directly as argument to printf: it's object,
not char*. You have to convert it to char* first, by calling getStr() on
it.

D.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to