<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello Jay,</div>
<div> </div>
<div>thank you very much for your suggestions. Imagine this:</div>
<div> </div>
<div>
<div>class IMYInterface<br/>
{</div>
<div>public:<br/>
virtual ~<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">IMYInterface</span>() {}</div>
<div> virtual bool start( bool fMode ) = 0;</div>
<div>};</div>
<div> </div>
<div>class MyObj : public <span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">IMYInterface</span><br/>
{<br/>
public:<br/>
...</div>
<div>...</div>
<div>
<div>protected:</div>
<div> <span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">MyObj</span>();<br/>
virtual ~<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">MyObj</span>();</div>
</div>
<div>};</div>
<div> </div>
<div>__declspec(dllexport) bool WINAPI GetTestObject( <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">IMYInterface</span>*& pObj )<br/>
{</div>
<div>
<div>bool ret = false;<br/>
<span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">MyObj</span>* pObject = new <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">MyObj()</span>;</div>
<div> if (<span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">pObject</span>!= NULL)<br/>
{</div>
<div> <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">pObj</span>= static_cast<<span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">IMYInterface</span>*> (<span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">pObject</span>);<br/>
if ( <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">pObj</span>!= NULL)<br/>
{<br/>
ret = true;<br/>
}<br/>
else<br/>
{<br/>
.....<br/>
}<br/>
}</div>
<div> </div>
<div>So, this is the Code behind my dll. And I would bind this <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">MyObj </span>to a racket object. How can I achieve this?</div>
<div> </div>
<div>Yours,</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
</div>
</div></div></body></html>