<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="COLOR: #0000ff; FONT-FAMILY: Comic Sans MS" bgColor=#ffffff>
<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 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> </DIV>
<DIV><FONT size=2>vtkImageReader *v16 =
vtkImageReader::New();<BR> v16->SetDataByteOrderToLittleEndian();<BR> v16->SetDataExtent(0,511,0,511,0,88);<BR> v16->SetDataSpacing(0.5859375,0.5859375,2);<BR> v16->SetHeaderSize(0);<BR> v16->SetFileDimensionality(3);<BR> v16->SetDataScalarTypeToUnsignedShort();<BR> v16->SetFileName("cerebellum6740.msk");<BR> v16->Update();<BR> </FONT></DIV>
<DIV><FONT size=2> vtkMarchingCubes *iso =
vtkMarchingCubes::New();<BR> iso->SetInput(
v16->GetOutput()
);<BR> iso->SetValue(0,128);<BR> iso->ComputeGradientsOn();<BR> iso->ComputeScalarsOff();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> vtkPolyDataWriter *volwriter1 =
vtkPolyDataWriter::New();<BR> volwriter1->SetInput(
iso->GetOutput()
);<BR> volwriter1->SetFileName("braintstem6740.vtk");<BR> volwriter1->Write();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT
size=2> volwriter1->Delete();<BR> iso->Delete();<BR> v16->Delete();</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV><FONT size=2>Pallavi</FONT></DIV></BLOCKQUOTE>
<P></P></BODY></HTML>