<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>hi,</DIV>
<DIV>Finally i found how to use ITK directly in c++. this is the solution:</DIV>
<DIV>1- add the header files pathes to the tools-&gt;options-&gt;projects and solutions-&gt;VC++ directories -&gt;include files</DIV>
<DIV>2- add the path of ITK LIBs to tools-&gt;options-&gt;projects and solutions-&gt;VC++ directories -&gt;library files</DIV>
<DIV>3- add these libraries to project-&gt;properties-&gt;configuration proprties-&gt;linker-&gt;input-&gt;additional dependency<BR>($(NOINHERIT) kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib&nbsp; ITKSpatialObject.lib ITKCommon.lib ITKNrrdIO.lib itkgdcm.lib itktiff.lib itkjpeg8.lib itkjpeg12.lib itkjpeg16.lib itkpng.lib ITKMetaIO.lib ITKDICOMParser.lib ITKEXPAT.lib ITKniftiio.lib ITKznz.lib itkzlib.lib itkvnl_inst.lib itksys.lib itkopenjpeg.lib comctl32.lib wsock32.lib snmpapi.lib itkvnl_algo.lib itkv3p_netlib.lib itkvnl.lib itkvcl.lib ws2_32.lib ) </DIV>
<DIV>3-according to the code you write you may need some other libs from ITK LIBs to add to the same place in step 3 (those libraries which were used in cmakelists.txt eg ITKIO.lib)</DIV>
<DIV>bye</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hossein Nazem</DIV></td></tr></table><br>