[IGSTK-Users] Inquire on IGSTK used by VS 2008
    Cheng, Patrick 
    PCheng at childrensnational.org
       
    Tue Dec 27 11:56:37 EST 2011
    
    
  
Hi Rong Xu,
 
You can build you application to link to IGSTK static library and MFC DLLs at the same time.
 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If you are using CMake, you can use the following scripts to link to IGSTK:
 
FIND_PACKAGE(IGSTK)
IF (USE_IGSTK_FILE)
  INCLUDE (${USE_IGSTK_FILE})
ELSE (USE_IGSTK_FILE)
  MESSAGE( FATAL_ERROR "This application requires IGSTK. One of these components is missing. Please verify configuration")
ENDIF (USE_IGSTK_FILE)
 
Here is some instruction on how to link to MFC with CMake:
http://www.cmake.org/Wiki/CMake_FAQ#How_to_use_MFC_with_CMake
 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
If you are using MFC wizard in visual studio, you will need to manually set include and linking directories.
 
You can find those in the IGSTK binary directory in a file named: IGSTKConfig.cmake
 
Hope this helps,
 
Patrick
 
 
From: igstk-users-bounces at public.kitware.com [mailto:igstk-users-bounces at public.kitware.com] On Behalf Of Rong Xu
Sent: Wednesday, December 21, 2011 7:52 PM
To: IGSTKUsers
Subject: [IGSTK-Users] Inquire on IGSTK used by VS 2008
 
Hi, everyone:
I am a new user on IGSTK, and I want to use IGSTK by VS 2008 in MFC environment. As I know, the dll files of IGSTK can not be created by compiling. But I don't know how to use IGSTK in MFC applications by VS 2008 without dll files, I got many link errors when I used IGSTK. Though I know how to use VTK and ITK, because I have had  including files, lib files and dll files.
Is there anybody familiar with the using of IGSTK in MFC applications by VS 2008 ? Please give me some advice how to resolve this problem.
I will appreciate your help!
Thank you!
-- 
---------------------
Best Regards!
===============================================
Rong Xu,  Ph.D Student
Ohya Lab
Graduate School of Global Information and Telecommunication
Studies (GITS), Waseda University
1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo, Japan (¨169-8050)
Tel:          +81-80-4208-1207
E-mail:     xurong1981 at gmail.com
               xurong at fuji.waseda.jp
===============================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20111227/bb02a154/attachment-0001.html>
    
    
More information about the IGSTK-Users
mailing list