<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>I just found this example for using C# 
with</FONT></DIV>
<DIV><FONT face=Arial size=2>Open GL. It passes a C# window to an</FONT></DIV>
<DIV><FONT face=Arial size=2>open GL program. It is quite simple.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'll work on it in the next couple of weeks 
and</FONT></DIV>
<DIV><FONT face=Arial size=2>see if I can get it to do the same for 
passing</FONT></DIV>
<DIV><FONT face=Arial size=2>a C# window to VTK!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><A 
href="http://www.colinfahey.com/opengl/csharp.htm">http://www.colinfahey.com/opengl/csharp.htm</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>- Asad</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV class=Section1>
<P style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: green; FONT-FAMILY: Arial"><BR><SPAN 
style="mso-spacerun: yes">&nbsp;</SPAN><BR></SPAN><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue; FONT-FAMILY: Arial">Asad Abu-Tarif, Ph.D., 
PMP <BR>Research Engineer<?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: green; FONT-FAMILY: Arial"><BR></SPAN><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">AutoQuant Imaging, 
Inc. <BR>877 25th. Street <BR>Watervliet, NY 12189 <BR>USA <BR>Email: 
asada@aqi.com <BR>Tel: 518-276-2264</SPAN><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: green; FONT-FAMILY: Arial"> <BR></SPAN><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue; FONT-FAMILY: Arial"><A 
href="http://www.aqi.com/">http://www.aqi.com/</A></SPAN><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: green; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Andrew Dolgert" &lt;</FONT><A 
href="mailto:ajd27@cornell.edu"><FONT face=Arial 
size=2>ajd27@cornell.edu</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>To: "'Asad Abu-Tarif'" &lt;</FONT><A 
href="mailto:asada@aqi.com"><FONT face=Arial 
size=2>asada@aqi.com</FONT></A><FONT face=Arial size=2>&gt;; "'VTK User Group'" 
&lt;</FONT><A href="mailto:vtkusers@vtk.org"><FONT face=Arial 
size=2>vtkusers@vtk.org</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Friday, December 05, 2003 12:31 
PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: RE: [vtkusers] VTK with 
C#</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial 
size=2>&gt; I have most of that working but haven't packaged it.&nbsp; I use 
Activiz/COM<BR>&gt; on my desk but can't afford it for students.<BR>&gt; 
<BR>&gt; C# Windows Form calls -&gt; managed C++ .NET Control calls<BR>&gt; 
&nbsp; -&gt; native C++ class with VTK pipeline.<BR>&gt; <BR>&gt; I followed the 
VTK 3.2 MFC sample, pulling HWNDs and events from the <BR>&gt; Control, 
instead.&nbsp; You could do this without using managed C++, too,<BR>&gt; if you 
want.<BR>&gt; <BR>&gt; Maybe someone else put together a sample doing 
this?<BR>&gt; <BR>&gt; - Drew Dolgert, Cornell Theory Center<BR>&gt; <BR>&gt; 
-----Original Message-----<BR>&gt; From: </FONT><A 
href="mailto:vtkusers-admin@vtk.org"><FONT face=Arial 
size=2>vtkusers-admin@vtk.org</FONT></A><FONT face=Arial size=2> 
[mailto:vtkusers-admin@vtk.org] On Behalf<BR>&gt; Of Asad Abu-Tarif<BR>&gt; 
Sent: Friday, December 05, 2003 10:40 AM<BR>&gt; To: Pedram Rezaei; </FONT><A 
href="mailto:vtkusers@vtk.org"><FONT face=Arial 
size=2>vtkusers@vtk.org</FONT></A><BR><FONT face=Arial size=2>&gt; Subject: Re: 
[vtkusers] VTK with C#<BR>&gt; <BR>&gt; <BR>&gt; Hi,<BR>&gt; Thanks for the 
info. I was just searching the vtkDonNetWrapper<BR>&gt; for that specific 
function (SetParentID).<BR>&gt; <BR>&gt; Only the GUI is in C# in my case, but 
the application logic is<BR>&gt; all in unmanaged C++. So, really all what I 
need is to know how<BR>&gt; to pass a C# window to an unmanaged 
function.<BR>&gt; <BR>&gt; If complete wrappers do exist with plans to update 
them for<BR>&gt; future VTK releases, that would be great. Otherwise, 
does<BR>&gt; anyone know how to pass a C# window to an unmanaged C++<BR>&gt; 
code so that VTK could render in that window?<BR>&gt; <BR>&gt; Thanks,<BR>&gt; - 
Asad<BR>&gt; <BR>&gt; </FONT></BODY></HTML>