<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-html" lang="x-western">
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<o:p></o:p>I have a IDL with a factory interface and two other
interfaces,<br>
<o:p></o:p>
<p class="MsoNormal">interface User {<o:p></o:p><br>
//...<br>
};</p>
<p class="MsoNormal">interface Student : User {<br>
//...<br>
};<o:p></o:p></p>
<p class="MsoNormal"><o:p>now I want to use the factory function in C++.
<br>
</o:p></p>
<p class="MsoNormal">Student_ptr createStudent() {<o:p></o:p><br>
    Student_impl *newStudent
= new Student_impl();<o:p></o:p><br>
    Student_ptr sp
= newStudent-&gt;Student_impl::_this();<br>
    return
sp;<o:p></o:p><br>
}<br>
</p>
<p class="MsoNormal">The problem is that the "_this()" function want to
use the User class. How I can fix this problem?<br>
</p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">Thank you.<o:p></o:p></p>
</div>
</div>
</body>
</html>