<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1429885858842_17918">Hi All,</div><div id="yui_3_16_0_1_1429885858842_17916"><br></div><div id="yui_3_16_0_1_1429885858842_17914" dir="ltr">I am trying to create my own dll with classes derived from VTK classes that shoud integrate in the vtkObjectFactory architecture.</div><div id="yui_3_16_0_1_1429885858842_17944" dir="ltr"><br></div><div id="yui_3_16_0_1_1429885858842_17976" dir="ltr">But when I use the macro VTK_FACTORY_INTERFACE_IMPLEMENT, I get the following compiler errors:</div><div id="yui_3_16_0_1_1429885858842_17978" dir="ltr"><br></div><div id="yui_3_16_0_1_1429885858842_17980" dir="ltr">error C2491: 'vtkLoad' : definition of dllimport function not allowed</div><div id="yui_3_16_0_1_1429885858842_17981" dir="ltr">error C2491: 'vtkGetFactoryVersion : definition of dllimport function not allowed</div><div id="yui_3_16_0_1_1429885858842_17988" dir="ltr">error C2491: 'vtkGetFactoryCompilerUsed' : definition of dllimport function not allowed</div><div id="yui_3_16_0_1_1429885858842_18013" dir="ltr"><br></div><div id="yui_3_16_0_1_1429885858842_18015" dir="ltr">Is the VTK_FACTORY_INTERFACE_EXPORT wrongly defined?</div><div id="yui_3_16_0_1_1429885858842_18016" dir="ltr"><br></div><div id="yui_3_16_0_1_1429885858842_18025" dir="ltr">Thanks - Maarten<br></div><div id="yui_3_16_0_1_1429885858842_17880"><br></div></div></body></html>