Karel Gardas a écrit :
>
> Hello,
>
> first of all, have you used --any IDL compiler option when compiling your IDL file(s)? If so, what issue exactly do you have with the extracting operator?
>

I used --any IDL compiler option.
When I try to extract, it return false, and the extraction do not work.
It occurs when there is a string in the structure MyStruct.


Here is a simple exemple, that shows the problem :
  http://mattieu.souchaud.free.fr/bazar/pb_mico.tgz

or more quickly :

  client.cc :

    // extract the struct
    cout << "extract by copy:" << endl;
    const MyStruct * seq_nok;
    bool ok = (*any) >>= seq_nok; // <----- ok == false
    if(ok)
      cout << "  echo: " << seq_nok->data << endl;
    else
      cout << "  error during extraction!" << endl;

    cout << "extract by ptr:" << endl;
    MyStruct seq_ok;
    ok = (*any) >>= seq_ok; // <----- ok == true
    if(ok)
      cout << "  echo: " <<  seq_ok.data << endl;
    else
      cout << "  error during extraction!" << endl;


thanks for your help!

> Cheers,
> Karel
> --
> Karel Gardas                  [EMAIL PROTECTED]
> ObjectSecurity Ltd.           http://www.objectsecurity.com
> ---
> Need experienced, fast, reliable technical MICO support?
> ---> http://www.objectsecurity.com/mico_commsup_referral.html <---
> ---
>
> souchaud wrote:
>> Hello,
>>
>> I have still got the same problem, when I use this operator in MICO :
>> CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::MyStruct *&_s );
>> it does not work.
>>
>> I want to solve this problem because my boss would like to use MICO in its 
applications instead of OmniORB.
>> Have you got any idea?
>>
>> Thanks, Mathieu Souchaud
>>
>>
>>
_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to