[Insight-developers] How to use ITK in MFC(by xlshi_@163.com)

Luis Ibanez luis.ibanez at kitware.com
Mon Jan 15 10:19:25 EST 2007


Hi 石祥林


Please look at the example:

      InsightApplications/ItkMFC


The easiest way to combine ITK and MFC is to
use CMake in order to configure your project.


You may find useful to look at the tutorials:

   http://www.itk.org/HTML/Tutorials.htm

in particular to:

http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm

for step by step instructions on how to
configure your own project using CMake.



Regards,



   Luis



-------------
石祥林 wrote:
> 
> 
> Hi
>  
>   Everyone.
>  
>   I want to use ITK in MFC, but have no idea what to do.
>  
>  
>  
>  
>   typedef itk::Image< unsigned short, 3 > ImageType;
>  
>   Only the above sentence pasted in my project(vc++, 2002),
>  
>   there are two errors when compiling,
>  
>  error C2143: syntax error : missing“;”(before“<”)
>  error C2653: “itk” : not class name or namespce.
>  
>    I have used the same project setting as in the ITK example, the 
> include directory, the lib directory, etc
>  
>    But it did not work.
>  
>    Please help me!   Thank you very much:)
>  
>  
>  
>  
>  
>  
>                                                               Eric
>  
>  
>  
>  
> 
> 
> 
> ------------------------------------------------------------------------
> 想免费获得高速稳定的3G邮箱吗? www.126.com <http://www.126.com/>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list