[vtkusers] About vtkGenericDataObjectReader::SetFileName

Bill Lorensen bill.lorensen at gmail.com
Wed Apr 25 18:10:07 EDT 2012


Try specifying the file name in unix form:
C:/Users/Wenlong/Desktop/surface.vtk


On Wed, Apr 25, 2012 at 6:08 PM, Wenlong <scc.wwl at gmail.com> wrote:
> Dear all,
>
> I am trying to using vtk with MFC. I'd like to open my vtk file with
> vtkGenericDataObjectReader instance.
>
> Here is what I do
>
> vtkGenericDataObjectReader* reader = vtkGenericDataObjectReader::New();
> reader->SetFileName("C:\\Users\\Wenlong\\Desktop\\surface.vtk");
> //Error!!!
> reader->OpenVTKFile();
> reader->Update();
>
> The building process is ok. However, as I try to run the program, an error
> happens at the second line which says there is an access conflict. I check
> the file and make sure that no other programs occupy the file and the file
> does exist.
>
> How can I solve this problem?
>
> Many thanks.
> Wenlong
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/About-vtkGenericDataObjectReader-SetFileName-tp5666114p5666114.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list