<DIV>Hi Mike</DIV>  <DIV>I&nbsp;had this problem for a long time. to solve this problem you can use these steps:</DIV>  <DIV>1-in your new solution add new class library project ( C#,C++, ...).</DIV>  <DIV>&nbsp;</DIV>  <DIV>2-in property page of your class lib in c/c++ -&gt;general-&gt;additional include directories, add this header files (D:\program files\itk is folder of your built itk):</DIV>  <DIV>"D:\Program Files\itk\Utilities\vxl\core";"D:\Program Files\itk\Utilities\vxl\vcl";"D:\Program Files\InsightToolkit-2.4.1\Utilities\vxl\core";"D:\Program Files\InsightToolkit-2.4.1\Utilities\vxl\vcl";"D:\Program Files\InsightToolkit-2.4.1\Utilities";"D:\Program Files\itk\Utilities";"D:\Program Files\itk\Utilities\gdcm";"D:\Program Files\InsightToolkit-2.4.1\Utilities\nifti\znzlib";"D:\Program Files\InsightToolkit-2.4.1\Utilities\nifti\niftilib";"D:\Program Files\InsightToolkit-2.4.1\Utilities\expat";"D:\Program Files\itk\Utilities\expat";"D:\Program
 Files\itk\Utilities\DICOMParser";"D:\Program Files\InsightToolkit-2.4.1\Utilities\DICOMParser";"D:\Program Files\InsightToolkit-2.4.1\Utilities\NrrdIO";"D:\Program Files\InsightToolkit-2.4.1\Utilities\MetaIO";"D:\Program Files\InsightToolkit-2.4.1\Code\SpatialObject";"D:\Program Files\InsightToolkit-2.4.1\Code\Numerics\NeuralNetworks";"D:\Program Files\InsightToolkit-2.4.1\Code\Numerics\Statistics";"D:\Program Files\InsightToolkit-2.4.1\Code\Numerics\FEM";"D:\Program Files\InsightToolkit-2.4.1\Code\IO";"D:\Program Files\InsightToolkit-2.4.1\Code\Numerics";"D:\Program Files\InsightToolkit-2.4.1\Code\Common";"D:\Program Files\InsightToolkit-2.4.1\Code\BasicFilters";"D:\Program Files\InsightToolkit-2.4.1\Code\Algorithms";"D:\Program Files\itk";</DIV>  <DIV>&nbsp;</DIV>  <DIV>3-in linker-&gt;general-&gt;additional library Directories add path of your itk lib files (again D:\program files\itk is folder of your built itk):</DIV>  <DIV>D:\Program Files\itk\bin\debug</DIV> 
 <DIV>&nbsp;</DIV>  <DIV>4-in linker-&gt;input-&gt;Additional dependencies add this lib files:</DIV>  <DIV>msvcrtd.lib mscoree.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib&nbsp; kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ITKBasicFilters.lib ITKCommon.lib ITKIO.lib ITKNrrdIO.lib itkgdcm.lib itkjpeg12.lib itkjpeg16.lib wsock32.lib snmpapi.lib itkpng.lib itktiff.lib itkjpeg8.lib ITKSpatialObject.lib ITKNumerics.lib ITKCommon.lib itkvnl_inst.lib itkvnl_algo.lib itkvnl.lib itkvcl.lib itknetlib.lib itksys.lib ITKMetaIO.lib ITKDICOMParser.lib ITKEXPAT.lib ITKniftiio.lib ITKznz.lib itkzlib.lib </DIV>  <DIV>&nbsp;</DIV>  <DIV>5-write your function: (my class name is itkclass and the function is iterator and namespace is itk_base)</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;</DIV><FONT
 color=#008000 size=2>  <DIV>// itk_base.h</DIV></FONT><FONT color=#0000ff size=2>  <DIV>#pragma</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>once</DIV>  <DIV>#include</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>"itkImage.h"</DIV></FONT><FONT color=#0000ff size=2>  <DIV>#include</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>"itkRGBPixel.h"</DIV></FONT><FONT color=#0000ff size=2>  <DIV>#include</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>"itkImageRegionIteratorWithIndex.h"</DIV></FONT><FONT color=#0000ff size=2>  <DIV>#include</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>"itkImageFileReader.h"</DIV></FONT><FONT color=#0000ff size=2>  <DIV>#include</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>"itkImageFileWriter.h"</DIV></FONT><FONT color=#0000ff size=2>  <DIV>using</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>namespace</FONT><FONT size=2> System;</DIV></FONT><FONT color=#0000ff size=2>  <DIV>using</FONT><FONT
 size=2> </FONT><FONT color=#0000ff size=2>namespace</FONT><FONT size=2> System::Collections;</DIV>  <DIV>&nbsp;</DIV></FONT><FONT color=#0000ff size=2>  <DIV>namespace</FONT><FONT size=2> itk_base {</DIV>  <DIV></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::RGBPixel&lt;</FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>char</FONT><FONT size=2>&gt; RGBPixelType;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::Image&lt;RGBPixelType,2&gt; ImageType;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::ImageRegionIteratorWithIndex&lt;ImageType&gt; IteratorType;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::ImageFileReader&lt;ImageType&gt; ReaderType;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::ImageFileWriter&lt;ImageType&gt; WriterType;</DIV>  <DIV></FONT><FONT color=#0000ff
 size=2>public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>ref</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>class</FONT><FONT size=2> itkclass</DIV>  <DIV>{</DIV>  <DIV></FONT><FONT color=#008000 size=2>// TODO: Add your methods for this class here.</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2>:</DIV>  <DIV></FONT><FONT color=#0000ff size=2>static</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> iterator()</DIV>  <DIV>{</DIV>  <DIV>ImageType::ConstPointer inputImage;</DIV>  <DIV>ReaderType::Pointer reader=ReaderType::New();</DIV>  <DIV>reader-&gt;SetFileName(</FONT><FONT color=#800000 size=2>"D:\\Program Files\\InsightToolkit-2.4.1\\Examples\\Data\\BrainProtonDensitySliceShifted13x17y.png"</FONT><FONT size=2>);</DIV>  <DIV>reader-&gt;Update();</DIV>  <DIV>inputImage=reader-&gt;GetOutput();</DIV>  <DIV>ImageType::Pointer outputImage = ImageType::New();</DIV> 
 <DIV>outputImage-&gt;SetRegions( inputImage-&gt;GetRequestedRegion() );</DIV>  <DIV>outputImage-&gt;CopyInformation(inputImage);</DIV>  <DIV>outputImage-&gt;Allocate();</DIV>  <DIV>ImageType::IndexType requestedIndex =outputImage-&gt;GetRequestedRegion().GetIndex();</DIV>  <DIV>ImageType::SizeType requestedSize =outputImage-&gt;GetRequestedRegion().GetSize();</DIV>  <DIV>IteratorType outputIt( outputImage, outputImage-&gt;GetRequestedRegion() );</DIV>  <DIV></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> ( outputIt.GoToBegin(); !outputIt.IsAtEnd(); ++outputIt)</DIV>  <DIV>{</DIV>  <DIV>ImageType::IndexType idx = outputIt.GetIndex();</DIV>  <DIV>idx[0] = requestedIndex[0] + requestedSize[0] - 1 - idx[0];</DIV>  <DIV>outputIt.Set( inputImage-&gt;GetPixel(idx) );</DIV>  <DIV>}</DIV>  <DIV>}</DIV>  <DIV>};</DIV>  <DIV>}</DIV>  <DIV>&nbsp;</DIV>  <DIV>6-add new windows form application project to your solution:</DIV>  <DIV>&nbsp;</DIV>  <DIV>7-in property page of your
 windows form application in c/c++ -&gt;general-&gt;Resolve #using&nbsp;References add the path of the dll that is built in your class lib for example in my case : F:\myexamples\debug ( isupposed that you are using C++ )</DIV>  <DIV>&nbsp;</DIV>  <DIV>8-for example add a button and use function in this form:</DIV>  <DIV>&nbsp;</DIV><FONT color=#0000ff size=2>  <DIV>private</FONT><FONT size=2>: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {</DIV>  <DIV>itkclass::iterator();</DIV>  <DIV>}</DIV>  <DIV>&nbsp;</DIV></FONT><FONT size=2>  <DIV>9- dont forget to add <FONT color=#0000ff size=2>#using</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>&lt;itk_base.dll&gt; </FONT></FONT></FONT>in your windows form's header file.</DIV>  <DIV>for example:</DIV>  <DIV>&nbsp;</DIV><FONT color=#0000ff size=2>  <DIV>#pragma</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>once</DIV>  <DIV>#using</FONT><FONT size=2> </FONT><FONT color=#800000
 size=2>&lt;itk_base.dll&gt;</DIV></FONT><FONT color=#0000ff size=2>  <DIV>namespace</FONT><FONT size=2> test {</DIV>  <DIV></FONT><FONT color=#0000ff size=2>using</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>namespace</FONT><FONT size=2> System;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>using</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>namespace</FONT><FONT size=2> System::ComponentModel;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>using</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>namespace</FONT><FONT size=2> System::Collections;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>using</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>namespace</FONT><FONT size=2> System::Windows::Forms;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>using</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>namespace</FONT><FONT size=2> System::Data;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>using</FONT><FONT size=2> </FONT><FONT color=#0000ff
 size=2>namespace</FONT><FONT size=2> System::Drawing;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>using</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>namespace</FONT><FONT size=2> itk_base;</DIV>  <DIV></FONT><FONT color=#008000 size=2>/// </FONT><FONT color=#808080 size=2>&lt;summary&gt;</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// Summary for Form1</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>///</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// WARNING: If you change the name of this class, you will need to change the</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// 'Resource File Name' property for the managed resource compiler tool</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// associated with all .resx files this class depends on. Otherwise,</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// the designers will not be able to
 interact properly with localized</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// resources associated with this form.</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// </FONT><FONT color=#808080 size=2>&lt;/summary&gt;</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>ref</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>class</FONT><FONT size=2> Form1 : </FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> System::Windows::Forms::Form</DIV>  <DIV>{</DIV>  <DIV></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2>:</DIV>  <DIV>Form1(</FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2>)</DIV>  <DIV>{</DIV>  <DIV>InitializeComponent();</DIV>  <DIV></FONT><FONT color=#008000 size=2>//</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>//TODO: Add the constructor code here</DIV></FONT><FONT size=2>  <DIV></FONT><FONT
 color=#008000 size=2>//</DIV></FONT><FONT size=2>  <DIV>}</DIV>  <DIV></FONT><FONT color=#0000ff size=2>protected</FONT><FONT size=2>:</DIV>  <DIV></FONT><FONT color=#008000 size=2>/// </FONT><FONT color=#808080 size=2>&lt;summary&gt;</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// Clean up any resources being used.</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// </FONT><FONT color=#808080 size=2>&lt;/summary&gt;</DIV></FONT><FONT size=2>  <DIV>~Form1()</DIV>  <DIV>{</DIV>  <DIV></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (components)</DIV>  <DIV>{</DIV>  <DIV></FONT><FONT color=#0000ff size=2>delete</FONT><FONT size=2> components;</DIV>  <DIV>}</DIV>  <DIV>}</DIV>  <DIV></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2>: System::Windows::Forms::Button^ button1;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>protected</FONT><FONT size=2>: </DIV>  <DIV></FONT><FONT color=#0000ff size=2>private</FONT><FONT
 size=2>:</DIV>  <DIV></FONT><FONT color=#008000 size=2>/// </FONT><FONT color=#808080 size=2>&lt;summary&gt;</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// Required designer variable.</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// </FONT><FONT color=#808080 size=2>&lt;/summary&gt;</DIV></FONT><FONT size=2>  <DIV>System::ComponentModel::Container ^components;</DIV></FONT><FONT color=#0000ff size=2>  <DIV>#pragma</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>region</FONT><FONT size=2> Windows Form Designer generated code</DIV>  <DIV></FONT><FONT color=#008000 size=2>/// </FONT><FONT color=#808080 size=2>&lt;summary&gt;</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// Required method for Designer support - do not modify</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>/// the contents of this method with the code editor.</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000
 size=2>/// </FONT><FONT color=#808080 size=2>&lt;/summary&gt;</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> InitializeComponent(</FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2>)</DIV>  <DIV>{</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;button1 = (</FONT><FONT color=#0000ff size=2>gcnew</FONT><FONT size=2> System::Windows::Forms::Button());</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;SuspendLayout();</DIV>  <DIV></FONT><FONT color=#008000 size=2>// </DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>// button1</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>// </DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;button1-&gt;Location = System::Drawing::Point(191, 67);</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;button1-&gt;Name = L</FONT><FONT
 color=#800000 size=2>"button1"</FONT><FONT size=2>;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;button1-&gt;Size = System::Drawing::Size(49, 27);</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;button1-&gt;TabIndex = 0;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;button1-&gt;Text = L</FONT><FONT color=#800000 size=2>"button1"</FONT><FONT size=2>;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;button1-&gt;UseVisualStyleBackColor = </FONT><FONT color=#0000ff size=2>true</FONT><FONT size=2>;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;button1-&gt;Click += </FONT><FONT color=#0000ff size=2>gcnew</FONT><FONT size=2> System::EventHandler(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, &amp;Form1::button1_Click);</DIV>  <DIV></FONT><FONT color=#008000 size=2>// </DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000
 size=2>// Form1</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#008000 size=2>// </DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;ClientSize = System::Drawing::Size(292, 266);</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;Controls-&gt;Add(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;button1);</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;Name = L</FONT><FONT color=#800000 size=2>"Form1"</FONT><FONT size=2>;</DIV>  <DIV></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;Text = L</FONT><FONT color=#800000 size=2>"Form1"</FONT><FONT size=2>;</DIV>  <DIV></FONT><FONT color=#0000ff
 size=2>this</FONT><FONT size=2>-&gt;ResumeLayout(</FONT><FONT color=#0000ff size=2>false</FONT><FONT size=2>);</DIV>  <DIV>}</DIV></FONT><FONT color=#0000ff size=2>  <DIV>#pragma</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>endregion</DIV></FONT><FONT size=2>  <DIV></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2>: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {</DIV>  <DIV>itkclass::iterator();</DIV>  <DIV>}</DIV>  <DIV>};</DIV>  <DIV>}</DIV></FONT>  <DIV><BR><BR><B><I>Mike Feur &lt;mikefeur_02@yahoo.com&gt;</I></B> wrote:</DIV>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Tom,<BR><BR>Thanks for the reply.&nbsp; My plan is to write simple reference classes to wrap the unmanaged (itk) code.&nbsp;&nbsp; This should work just fine for incorporating unmanaged C++ code.&nbsp; For instance:<BR><BR>//****Managed wrapper class*****<BR>public ref class
 MikeWrapper<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; public:<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MikeWrapper(Int32 initial);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; void PrintValue();<BR>&nbsp;&nbsp;&nbsp; private:<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MikeClass&lt;int&gt; *pMike;<BR>&nbsp;&nbsp;&nbsp; <BR>//**Unmanaged C++ class****<BR>template&lt;typename T&gt; <BR>&nbsp;&nbsp;&nbsp; class MikeClass<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; public:<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MikeClass(T&nbsp; value) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; myvec.push_back(value);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; void PrintValue(){<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; std::cout&lt;&lt; myvec[0] &lt;&lt; std::endl;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR><BR>&nbsp;&nbsp;&nbsp; private:<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; std::vector&lt;T&gt;
 myvec;<BR>&nbsp;&nbsp;&nbsp; };<BR><BR>//********************<BR><BR>&nbsp; At this point, the GUI can be written in a CLR language ( (C++/CLI, C#) and just access the wrapper class.<BR><BR>My tripping point is the compiler settings. The header for the unmanaged class&nbsp; calls itkImage.h and thus needs to have the correct ITK compiler settings, include directories and libraries.&nbsp; I can't use CMake unfortunately because it only sets up normal unmanaged C++ projects. John Biddiscombe posted some tips back in 2004 on how to do this in this list, but I can't seem to make it work.<BR><BR>Thanks for reading again.<BR><BR><BR><BR><BR><B><I>Thomas Lambertz &lt;thomas@hexerei-software.de&gt;</I></B> wrote:   <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">Hello Mike,<BR><BR>the difference between C++/CLI and conventional unmanaged C++ is much <BR>more than only a compilerstep. For example there are no raw-pointer
 in <BR>CLI and there are many other types that have changed. So it doesnt work <BR>to set up a project for CLI by only changing some parameters in CMake. <BR>From my point of view there´s no way to compile ITK as CLI without <BR>rewriting nearly the complete code (but i am prepared to learn). <BR>Resulting performance may be another contraindication.<BR><BR>Have you considered a mixedmode application ? I have approached it that <BR>way. My GUI runs as a CLI-app while access to ITK is encapsulated in an <BR>unmanaged DLL (you have to spent some attention on memory-management). <BR>Needs some work on a wrapper but the benefits of the new gui-handling <BR>may pay of for you.<BR><BR>Statically linking the (conventional) ITK library against a mixedmode <BR>application by using "#pragma (un)managed" and some marshalling may also <BR>work.I am sure there are more suitable solutions...<BR><BR>Regards,<BR>Tom<BR><BR><BR>Mike Feur wrote:<BR>&gt; Hello,<BR>&gt;<BR>&gt; I am trying to
 create a Common Language Runtime C++/CLI project that<BR>&gt; includes ITK code in Visual Studio 2005.<BR>&gt;<BR>&gt; There is no Cmake file for me to use. I have tried manually copying<BR>&gt; over all the include directories from a Cmake created ITK project. I<BR>&gt; am getting linker errors such as<BR>&gt;<BR>&gt; "error LNK2001: unresolved external symbol "public: virtual void<BR>&gt; __thiscall itk::EventObject::Print(class std::basic_ostream&lt; ....."<BR>&gt;<BR>&gt; I tried including the appropriate lib files by adding the<BR>&gt; "...\InsightBin\bin\debug" directory to the "Configuration<BR>&gt; Properties\Linker\General\Additional Library Directories" dialog box<BR>&gt; in the Property Pages for the Solution, but still no luck.<BR>&gt;<BR>&gt;<BR>&gt; Any suggestions or instructions of how to integrate ITK into a CLR<BR>&gt; solution?<BR>&gt;<BR>&gt; Best of all would be a Cmake file to use, similar to the one<BR>&gt; available for MFC.<BR>&gt;<BR>&gt;<BR>&gt;
 Thanks for taking the time to read this.<BR>&gt;<BR>t<BR>_______________________________________________<BR>Insight-users mailing list<BR>Insight-users@itk.org<BR>http://www.itk.org/mailman/listinfo/insight-users<BR></BLOCKQUOTE><BR>  <DIV>  <HR SIZE=1>  Yahoo! Messenger with Voice. <A href="http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com">Make PC-to-Phone Calls</A> to the US (and 30+ countries) for 2¢/min or less._______________________________________________<BR>Insight-users mailing list<BR>Insight-users@itk.org<BR>http://www.itk.org/mailman/listinfo/insight-users<BR></DIV></BLOCKQUOTE><BR><p>
                <hr size=1>New Yahoo! Messenger with Voice. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman5/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com">Call regular phones from your PC</a> and save big.