<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:10.0pt;
        margin-left:0cm;
        line-height:115%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt">Hi,</p>
<p class="MsoNormal">I am using omniORB 4.1.2 in C&#43;&#43; code that I develop using Visual Studio 2005. I am developing a C&#43;&#43; service with CORBA interface on 64 bit Windows 7 version. I would like the app to be 32 bit version though. My pre-processor variables are:</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal">
WIN32</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal">
_DEBUG</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal">
__NT__</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal">
__WIN32__</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal">
__x86__</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal">
_WIN32_WINNT=0x0400</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal">
__OSVERSION__=4 </p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt">&nbsp;</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt">I have right now very simple idl (attached).</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt">When I wrote my first method to return the list of string:</p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal; text-autospace:none">
<span style="font-size:10.0pt; font-family:&quot;Courier New&quot;; color:#010001">lcc</span><span style="font-size:10.0pt; font-family:&quot;Courier New&quot;">::<span style="color:#010001">ProtocolDataList</span>*
<span style="color:#010001">TugunSituationListener</span>::<span style="color:#010001">getSupportedProtocols</span>()</span></p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal; text-autospace:none">
<span style="font-size:10.0pt; font-family:&quot;Courier New&quot;">{</span></p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal; text-autospace:none">
<span style="font-size:10.0pt; font-family:&quot;Courier New&quot;">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal; text-autospace:none">
<span style="font-size:10.0pt; font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:#010001">
lcc</span>::<span style="color:#010001">ProtocolDataList_var</span> <span style="color:#010001">
list</span> = <span style="color:blue">new</span> <span style="color:#010001">lcc</span>::<span style="color:#010001">ProtocolDataList</span>();</span></p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal; text-autospace:none">
<span style="font-size:10.0pt; font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:#010001">
list</span>-&gt;<span style="color:#010001">length</span>(1);</span></p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal; text-autospace:none">
<span style="font-size:10.0pt; font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:#010001">
list</span>[0].<span style="color:#010001">eventType</span> = <span style="color:#010001">
lcc</span>::<span style="color:#010001">ProtocolTypeEnum</span>::<span style="color:#010001">RS232C</span>;</span></p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal; text-autospace:none">
<span style="font-size:10.0pt; font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:#010001">
list</span>[0].<span style="color:#010001">displayname</span> = <span style="color:#A31515">
&quot;RS232C&quot;</span>;</span></p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt"><span style="font-size:10.0pt; line-height:115%; font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color:blue">return</span> &amp;<span style="color:#010001">list</span>;</span></p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt"><span style="font-size:10.0pt; line-height:115%; font-family:&quot;Courier New&quot;">}</span></p>
<p class="MsoNormal" style="margin-bottom:0cm; margin-bottom:.0001pt">I am getting this error:</p>
<p class="MsoNormal" style="margin-left:36.0pt">Error&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error C2440: 'return' : cannot convert from 'lcc::ProtocolDataList_var *__w64 ' to 'lcc::ProtocolDataList *'</p>
<p class="MsoNormal">I don&#8217;t understand this, why omniORB is trying to use 64 bit version for pointer?</p>
<p class="MsoNormal">Any help appreciated.</p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal">Janusz</p>
<p class="MsoNormal">&nbsp;</p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect
 of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.<br>
</font>
</body>
</html>