<DIV>I have my IDL file:</DIV>
<DIV> </DIV>
<DIV>interface MyObject {<BR> struct PERSON {<BR> long lId;<BR> string<32> sName;<BR> };</DIV>
<DIV> typedef sequence<PERSON> PERSONS;</DIV>
<DIV> void ShowPerson(out PERSONS p);<BR>};<BR></DIV>
<DIV>and I have my method definition for ShowPerson:</DIV>
<DIV> </DIV>
<DIV>class MyObject_i:public POA_MyObject,public PortableServer::RefCountServantBase {<BR>public:<BR> virtual void ShowPerson(MyObject::PERSONS_out p);<BR>};</DIV>
<DIV>void MyObject_i::ShowPerson(MyObject::PERSONS_out p) {<BR> p=new MyObject::PERSONS();<BR> p->length(2);<BR><STRONG> p[0].lId=1L; </STRONG><STRONG><FONT color=#ff0000>// line 12<BR></FONT> p[0].sName=CORBA::string_dup("Hola"); </STRONG><STRONG><FONT color=#ff0000>// line 13<BR></FONT> p[1].lId=2L; </STRONG><STRONG><FONT color=#ff0000>// line 14<BR></FONT> p[1].sName=CORBA::string_dup("Mundo"); </STRONG><FONT color=#ff0000><STRONG>// line 15<BR></STRONG></FONT>}</DIV>
<DIV> </DIV>
<DIV>But in MSVC++ (6.0) it didn't compile :^(</DIV>
<DIV> </DIV>
<DIV>The errors:</DIV>
<DIV> </DIV>
<DIV>seqout.cpp(12) : error C2666: '[]' : 2 overloads have similar conversions<BR>seqout.cpp(12) : error C2228: left of '.lId' must have class/struct/union type<BR>seqout.cpp(13) : error C2666: '[]' : 2 overloads have similar conversions<BR>seqout.cpp(13) : error C2228: left of '.sName' must have class/struct/union type<BR>seqout.cpp(14) : error C2666: '[]' : 2 overloads have similar conversions<BR>seqout.cpp(14) : error C2228: left of '.lId' must have class/struct/union type<BR>seqout.cpp(15) : error C2666: '[]' : 2 overloads have similar conversions<BR>seqout.cpp(15) : error C2228: left of '.sName' must have class/struct/union type</DIV>
<DIV> </DIV>
<DIV>what happen? :^/</DIV>
<DIV> </DIV>
<DIV>Thank!</DIV><p>
                <hr size=1>
Ahora podés usar Yahoo! Messenger en tu <b>Unifón</b>,
en cualquier momento y lugar.<br>
Encontrá más información <a href="http://ar.mobile.yahoo.com/sms.html">aquí</a>.