<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->options->projects and solutions->VC++ directories ->include files</DIV>
<DIV>2- add the path of ITK LIBs to tools->options->projects and solutions->VC++ directories ->library files</DIV>
<DIV>3- add these libraries to project->properties->configuration proprties->linker->input->additional dependency<BR>($(NOINHERIT) kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib 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> </DIV>
<DIV>Hossein Nazem</DIV></td></tr></table><br>