[Insight-users] Visual Studio .net 2003 and example
Luis Ibanez
luis.ibanez at kitware.com
Wed Jul 7 16:06:10 EDT 2004
Hi Marcelo,
For an example on how to use ITK with MFC you may want
to look at the application in
InsightApplications/ItkMFC.
What you do is to start the skeleton of your app using the
VisualStudio IDE, then create a CMakeList.txt file that uses
the files generated by VisualStudio. Then, from there, you
generate the Visual Studio project using CMake.
Regards,
Luis
-------------------------
Oliveira Marcelo wrote:
> Hi Luis and All !!!!
>
> Tanks a lot for your help !!!
>
> OK, i run my Hello !!!! But now i want to run this Hello inside a Form !!
>
> What i don't undestand yet is, How can i run my example with a Window
> Form Aplication (.NET) or using a GUI from VS .NET.
>
> For example: When i create a simple Window Form Aplication (.NET), VS
> generate the following files - Form1.cpp, stdafx.cpp,
> AssemblyInfo.cpp, Form1.h, resource.h, stdafx.h.
>
> I made my CMalist like this:
> ADD_LIBRARY( Form1.cpp stdafx.cpp )
> ADD_EXECUTABLE(formTest Form1.cpp stdafx.cpp )
> TARGET_LINK_LIBRARIES(formTest ITKNumerics ITKCommon ITKBasicFilters
> ITKIO ITKAlgorithms )
> And i put on Form1.cpp the #include "itkImage.h"
>
> CMake run ok, and create the bin directory with formTest.sln
>
> but when i try to build all to generete the EXE file inside the VS a
> lot of error happened !!!!
>
> What im doing wrong !!!!
>
> Tanks for your Hints and time !!!!
>
>
>
>
>
>
>
> */Luis Ibanez <luis.ibanez at kitware.com>/* wrote:
>
>
> Hi Marcelo,
>
> You should use CMake for configuring your own Example.
>
> Please follow the instructions in the Tutorial sessions:
>
> http://www.itk.org/HTML/Tutorials.htm
>
> in particular in
>
> http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/img0.html
> http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/img27.html
>
> You should also read the first two chapters of the
> SoftwareGuide:
>
> http://www.itk.org/ItkSoftwareGuide.pdf
>
>
> That will save you a lot of time.
>
>
> Regards,
>
>
> Luis
>
>
> -------------------------
> Oliveira Marcelo wrote:
>
> > Hi user's !!!!
> >
> > ITK and VS .NET 2003 installed OK using CMAKE 2.0 on my Win XP.
> >
> > And now, i want to run a simple example:
> >
> > Then i create a Window Form Aplication (.NET) and in Form1.cpp i
> put < BR>> the #include "itkImage.h"
> >
> > I set the Includes and Library (TOOLS -> Option -> Projects -> VC++
> > Projects ) then when i build solution this message happen
> >
> > fatal error C1083: Cannot open include file:
> 'vnl/vnl_vector_ref.h': No
> > such file or directory d:\ITK\Code\Common\itkVector.h(21):
> >
> > What is the right way to execute VS 2003 .NET and ITK ????
> >
> >
> > tanks for advanced me
> >
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Mail
> <http://br.rd.yahoo.com/mail/taglines/*http://br.info.mail.yahoo.com/>
> agora ainda melhor: 100MB, anti-spam e antivírus grátis!
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list