[vtkusers] VTK and Windows Forms Application, is that Possible?

Raúl Ferriz raul at torresyvalero.com
Thu Apr 22 12:03:48 EDT 2010


El 22/04/2010 17:43, Raúl Ferriz escribió:
> I finally fix that and link.
>
> If it helps any one:
> 1-Build any vtk sample with cmake
> 2-Open sln file
> 3-Copy 'Aditional library dependences' into your project
>
> Now should work.
>
> But now I have another problem, I cannot achieve control reponding to 
> mouse or keyboard events ... I have achieved working examples builded 
> by CMake, without using MCF or WPA, but they do not work on my 
> project. Any advice?
>
> Many thanks
>
Just forget my last question, simply commenting out

     //[SecurityPermission(SecurityAction::Demand, 
Flags=SecurityPermissionFlag::UnmanagedCode)]
     virtual void WndProc( Message% m ) override
     {
         // Listen for operating system messages.
worked.

Many thanks



More information about the vtkusers mailing list