<DIV><BR>Hi,<BR>In order to use "this-&gt;" in Proc1, Proc1 have to be a member method of myVTKApp.<BR>theVTKApp is created in WM_LBUTTONDOWN code, and you want to use it in WM_CREATE.<BR>But WM_CREATE is sent before WM_LBUTTONDOWN...<BR>You need to create your myVTKApp instance in WM_CREATE, and then call theVTKApp-&gt;Proc1();</DIV>
<DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hello Every body, I Wonder if is there any one that can help me on this,</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Im trying to implement a sub fuction under win32 prog, but im having problems<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on defining properly the prototypes and functions to transfer the vtk functions <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and properties, my code is attached<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the problem is with the function</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL CALLBACK Proc1 (HWND hwnd, char fc[])<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //---&gt;&gt;&gt;&nbsp;this-&gt;ren1-&gt;AddActor(this-&gt;cylenginesActor2 ); help here<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return TRUE ;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><BR><BR>Aurélien REGAT-BARREL<p>
                <hr size=1>
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
<br><a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/mail/mail_taglines/default/*http://fr.benefits.yahoo.com/">Créez votre Yahoo! Mail</a>
<br><br>
Dialoguez en direct avec vos amis grâce à <a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com/">Yahoo! Messenger !</a>