[Insight-users] itk in MFC

Pan Ross rosspan2004 at yahoo.com.cn
Thu Oct 28 09:01:28 EDT 2004


I can run such codes in console under Windows, but when I put them into a MFC Doc/View project, it does work.     
    typedef itk::RGBPixel< unsigned char > PixelType;
    typedef itk::Image< PixelType, 2 > ImageType;
    typedef itk::ImageFileReader< ImageType > ReaderType;
    ReaderType::Pointer reader  = ReaderType::New();
   reader->SetFileName("c:\\lena_std.jpg");//argv[1] );
    reader->Update();
 
The error is "Abnormal in 0x7c81eb33 : Microsoft C++ exception: __non_rtti_object @ 0x0012f3a0"
 
Can anyone help me with this?



---------------------------------
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20041028/fda8661a/attachment.htm


More information about the Insight-users mailing list