What's Wrong ???



Hello !

ORBit can't support variable compound type return.

My test code is :

interface Four {
        struct fourst{
                string name;
        };
        fourst mix(in fourst member);
};

client code :
main() {
    Four_fourst node, *rnode;

    node.name = "JJH";
    rnode = Four_mix(server, &node, &ev);
    fprintf(stdout, "Result : %s\n", rnode->name);
}

server code :
main()
{
        CORBA_ORB_run();
}

static Four_fourst*
impl_Four_mix(impl_POA_Four * servant, Four_fourst *member, CORBA_Environment *
ev)
{
    Four_fourst retval;

    printf("impl_Four_MIX : name=%s\n", member->name);
    retval.name = "KHS";
    return &retval;
}

What's wrong ?

I want to your clear answer.
If anyone replied, attached files infected virus.
 Please send me too. 

ETRI, Jang Jong Hyun

Thank you.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]