<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@ËÎÌå";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:ËÎÌå;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Rong Xu,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You can build you application to link to IGSTK static library and MFC DLLs at the same time.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If you are using CMake, you can use the following scripts to link to IGSTK:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>FIND_PACKAGE(IGSTK)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>IF (USE_IGSTK_FILE)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> INCLUDE (${USE_IGSTK_FILE})<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>ELSE (USE_IGSTK_FILE)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> MESSAGE( FATAL_ERROR "This application requires IGSTK. One of these components is missing. Please verify configuration")<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>ENDIF (USE_IGSTK_FILE)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Here is some instruction on how to link to MFC with CMake:<o:p></o:p></span></p><p class=MsoNormal><a href="http://www.cmake.org/Wiki/CMake_FAQ#How_to_use_MFC_with_CMake">http://www.cmake.org/Wiki/CMake_FAQ#How_to_use_MFC_with_CMake</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If you are using MFC wizard in visual studio, you will need to manually set include and linking directories.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>You can find those in the IGSTK binary directory in a file named: IGSTKConfig.cmake<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hope this helps,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Patrick<span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> igstk-users-bounces@public.kitware.com [mailto:igstk-users-bounces@public.kitware.com] <b>On Behalf Of </b>Rong Xu<br><b>Sent:</b> Wednesday, December 21, 2011 7:52 PM<br><b>To:</b> IGSTKUsers<br><b>Subject:</b> [IGSTK-Users] Inquire on IGSTK used by VS 2008<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi, everyone:<br><br>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.<br><br>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.<br><br>I will appreciate your help!<br><br>Thank you!<br clear=all><br>-- <br><br>---------------------<br>Best Regards!<br><br>===============================================<br>Rong Xu, Ph.D Student<br>Ohya Lab<br>Graduate School of Global Information and Telecommunication<br>Studies (GITS), Waseda University<br>1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo, Japan (<span lang=ZH-CN>¨“</span>169-8050)<br><br>Tel: +81-80-4208-1207<br>E-mail: <a href="mailto:xurong1981@gmail.com" target="_blank">xurong1981@gmail.com</a><br> <a href="mailto:xurong@fuji.waseda.jp" target="_blank">xurong@fuji.waseda.jp</a><br>===============================================<o:p></o:p></p></div></body></html>