<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Ok, Luis<BR>
it works perfect.<BR>
Can you explain more detailed what you refers to "provide a mechanism for checking versions when you load the DLL"?<BR>
<BR>
thanks for your help! <BR><BR>
<BR>
<BR>> Date: Sun, 18 May 2008 09:52:26 -0400<BR>> From: luis.ibanez@kitware.com<BR>> To: pmb_007@hotmail.com<BR>> CC: insight-users@itk.org<BR>> Subject: Re: [Insight-users] Making ITK dlls with Visual Studio<BR>> <BR>> <BR>> <BR>> Hi Pedro,<BR>> <BR>> The basic step is to replace<BR>> <BR>> <BR>> ADD_EXECUTABLE(GradientImageFilter GradientImageFilter.cxx)<BR>> <BR>> <BR>> with<BR>> <BR>> ADD_LIBRARY(GradientImageFilter SHARED GradientImageFilter.cxx)<BR>> <BR>> <BR>> in your CMakeLists.txt file.<BR>> <BR>> <BR>> However, in addition to that, you need to add an explicit instantiation<BR>> for the type in the .cxx file, add the EXPORT symbol, and provide a<BR>> mechanism for checking versions when you load the DLL.<BR>> <BR>> <BR>> All of this is illustrated in the VolViewPlugins directory in<BR>> InsightApplications:<BR>> <BR>> InsightApplications/VolViewPlugins<BR>> <BR>> <BR>> <BR>> Regards,<BR>> <BR>> <BR>> Luis<BR>> <BR>> <BR>> <BR>> ------------------------------<BR>> Pedro Madrigal Bayonas wrote:<BR>> > Hi, i'm new ITK user. My question is:<BR>> > <BR>> > anybody knows how to obtain DLLs (not .exe) when compiling the proyect <BR>> > with Visual Studio 6.0?<BR>> > For example, how can i make the Filter GradientImageFilter.dll instead <BR>> > GradientImageFilter.exe??<BR>> > It would be fantastic if someone send me the code showing me the way to <BR>> > do this with this filter.<BR>> > <BR>> > Regards,<BR>> > <BR>> > <BR>> > Thanks<BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > Tecnología, moda, motor, viajes,.suscríbete a nuestros boletines para <BR>> > estar siempre a la última MSN Newsletters <BR>> > <http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com><BR>> > <BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > <BR>> > _______________________________________________<BR>> > Insight-users mailing list<BR>> > Insight-users@itk.org<BR>> > http://www.itk.org/mailman/listinfo/insight-users<BR><BR><br /><hr />Tecnología, moda, motor, viajes,.suscríbete a nuestros boletines para estar siempre a la última <a href='http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com' target='_new'>MSN Newsletters</a></body>
</html>