<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#800000 face=Fixedsys size=2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#800000 face=Fixedsys size=2>I have some problems with
the SetLeftButtonPressMethod under VC++ 6.0. I found some documentation but
it didn't help. This is what I found:</FONT></DIV>
<DIV><FONT color=#800000 face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT color=#800000 face=Fixedsys size=2>"</FONT><FONT color=#800000
face=Fixedsys size=2><A name=a16
doxytag="vtkInteractorStyle::SetLeftButtonPressMethod"><B>void
vtkInteractorStyle::SetLeftButtonPressMethod (void(* <EM>f</EM>)(void *), void *
<EM>arg</EM>) </B></A></DIV>
<DIV>
<P><FONT color=#800000 face=Fixedsys size=2>Callbacks so that the applicaiton
can override the default behaviour."</FONT>
<P>
<P>But I can't get it working. I made the following test-function:
<P>void Test();
<P>How can I use the method???? SetLeftButtonPressMethod(Test, NULL) does not
work. The compiler says:
<P>error C2664: 'SetLeftButtonPressMethod' : cannot convert parameter 1 from
'void (void)' to 'void (__cdecl *)(void
*)'<BR> None of the functions with
this name in scope match the target type
<P>I hope that anyone can help me, </FONT><FONT color=#800000 face=Fixedsys
size=2></FONT></P></DIV>
<DIV><FONT color=#800000 face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT color=#800000 face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT color=#800000 face=Fixedsys size=2>Greetings,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#800000 face=Fixedsys size=2>Oscar Reynhout</FONT></DIV>
<DIV><FONT color=#800000 face=Fixedsys size=2>Philips NatLab</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#800000 face=Fixedsys size=2>
\\\|||///<BR> . =======<BR> / \| O O
|<BR> \ / \`___'/<BR> # _| |_<BR> (#)
( )<BR> #\//|* *|\\<BR>
#\/( * )/<BR> # =====<BR>
# ( U
)
O<BR> # ||
|| O(o)O<BR> .#---'|
|`----. | <BR> `#----'
`-----'
\|/<BR>============================================================<BR>s'Avonds
& thuis: <A
href="mailto:OscarReynhout@hetnet.nl">OscarReynhout@hetnet.nl</A><BR>Overdag:
<A
href="mailto:Reynhout@natlab.research.philips.com">Reynhout@natlab.research.philips.com</A><BR>Weekend:
<A
href="mailto:Reynhout@chello.nl">Reynhout@chello.nl</A></FONT></DIV></BODY></HTML>