[vtkusers] problems with procedure entry point in vtkCommon.dll

Pallavi Joshi pallavi.joshi at vanderbilt.edu
Fri Jun 11 12:58:38 EDT 2004


  Hi,
  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 ?
  Please help me !!!!
  This is my code:

  vtkImageReader *v16 = vtkImageReader::New();
      v16->SetDataByteOrderToLittleEndian();
      v16->SetDataExtent(0,511,0,511,0,88);
      v16->SetDataSpacing(0.5859375,0.5859375,2);
      v16->SetHeaderSize(0);
      v16->SetFileDimensionality(3);
      v16->SetDataScalarTypeToUnsignedShort();
      v16->SetFileName("cerebellum6740.msk");
     v16->Update();
    
    vtkMarchingCubes *iso = vtkMarchingCubes::New();
      iso->SetInput( v16->GetOutput() );
    iso->SetValue(0,128);
    iso->ComputeGradientsOn();
    iso->ComputeScalarsOff();

    vtkPolyDataWriter *volwriter1 = vtkPolyDataWriter::New();
     volwriter1->SetInput( iso->GetOutput() );
    volwriter1->SetFileName("braintstem6740.vtk");
    volwriter1->Write();

    volwriter1->Delete();
    iso->Delete();
    v16->Delete();

  Thanks,
  Pallavi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040611/b8844af1/attachment.htm>


More information about the vtkusers mailing list