[Insight-users] Making ITK dlls with Visual Studio

Pedro Madrigal Bayonas pmb_007 at hotmail.com
Tue May 20 13:18:13 EDT 2008


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


More information about the Insight-users mailing list