<DIV>Hi,</DIV>
<DIV>This is commonly due to a bad vtkCommon.dll version.</DIV>
<DIV>Make sure that the dll you compiled is the one loaded by your exe.</DIV>
<DIV>Use dependency walker to check which dll is loaded by your exe ("View full paths" option).<BR><A href="http://www.dependencywalker.com/">http://www.dependencywalker.com/</A></DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><B><I>Pallavi Joshi &lt;pallavi.joshi@vanderbilt.edu&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>

<BLOCKQUOTE id=0><LABEL id=HbSession SessionId="975634000"></LABEL>
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV><FONT size=2>I am new to vtk. I was able to build vtk using VC++. But my problem is I get this error when I try to execute my code : "procedure entry point could not be located in the vtkCommon.dll". I am using vtkMarchingcubes&nbsp; and have accordingly included my vtkPatented.dll, vtkPatended.lib files and was able to link them successfully. Also the header file has been included. Does anybody have any idea why this does give such an error ?</FONT></DIV>
<DIV><FONT size=2>Please help me !!!!</FONT></DIV>
<DIV><FONT size=2>This is my code:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>vtkImageReader *v16 = vtkImageReader::New();<BR>&nbsp;&nbsp;&nbsp;&nbsp;v16-&gt;SetDataByteOrderToLittleEndian();<BR>&nbsp;&nbsp;&nbsp;&nbsp;v16-&gt;SetDataExtent(0,511,0,511,0,88);<BR>&nbsp;&nbsp;&nbsp;&nbsp;v16-&gt;SetDataSpacing(0.5859375,0.5859375,2);<BR>&nbsp;&nbsp;&nbsp;&nbsp;v16-&gt;SetHeaderSize(0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;v16-&gt;SetFileDimensionality(3);<BR>&nbsp;&nbsp;&nbsp;&nbsp;v16-&gt;SetDataScalarTypeToUnsignedShort();<BR>&nbsp;&nbsp;&nbsp;&nbsp;v16-&gt;SetFileName("cerebellum6740.msk");<BR>&nbsp;&nbsp;&nbsp;v16-&gt;Update();<BR>&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;vtkMarchingCubes *iso = vtkMarchingCubes::New();<BR>&nbsp;&nbsp;&nbsp;&nbsp;iso-&gt;SetInput( v16-&gt;GetOutput() );<BR>&nbsp;&nbsp;iso-&gt;SetValue(0,128);<BR>&nbsp;&nbsp;iso-&gt;ComputeGradientsOn();<BR>&nbsp;&nbsp;iso-&gt;ComputeScalarsOff();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;vtkPolyDataWriter *volwriter1 = vtkPolyDataWriter::New();<BR>&nbsp;&nbsp;&nbsp;volwriter1-&gt;SetInput( iso-&gt;GetOutput() );<BR>&nbsp;&nbsp;volwriter1-&gt;SetFileName("braintstem6740.vtk");<BR>&nbsp;&nbsp;volwriter1-&gt;Write();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;volwriter1-&gt;Delete();<BR>&nbsp;&nbsp;iso-&gt;Delete();<BR>&nbsp;&nbsp;v16-&gt;Delete();</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV><FONT size=2>Pallavi</FONT></DIV></BLOCKQUOTE>
<P></P>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: <HTTP: vtkfaq cgi-bin public.kitware.com><BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE><BR><BR>Aurélien REGAT-BARREL<p>
                <hr size=1>
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
<br><a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/mail/mail_taglines/default/*http://fr.benefits.yahoo.com/">Créez votre Yahoo! Mail</a>
<br><br>
Dialoguez en direct avec vos amis grâce à <a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com/">Yahoo! Messenger !</a>