[vtk-developers] [VTK 0013102]: problem with vtkStringArray (vtk5.10 rc2, vs2010)
Mantis Bug Tracker
mantis at public.kitware.com
Tue Apr 17 02:22:53 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.vtk.org/Bug/view.php?id=13102
======================================================================
Reported By: jhChoi
Assigned To:
======================================================================
Project: VTK
Issue ID: 13102
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: high
Status: backlog
Project: Kitware
Type: incorrect functionality
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 2012-04-17 02:22 EDT
Last Modified: 2012-04-17 02:22 EDT
======================================================================
Summary: problem with vtkStringArray (vtk5.10 rc2, vs2010)
Description:
hi all
i want to use as like below code.
It was no problem under vtk.5.4.2 vs2008
but i upgraded the both of vtk and vs.(vtk5.10 rc2, vs2010)
then i have problem with vtkStringArray.
do InsertNextValue() but nothing in the array.
how can i fix it?
please help me.
here is a fraction of my code
---------------------------------------------
vtkStringArray* sarray = vtkStringArray::New();
char szFilter[] = "dcm files(*.dcm) || *.dcm";
CFileDialog dlg(TRUE, NULL, NULL, OFN_ALLOWMULTISELECT, szFilter);
char buffer[4096] = {0};
dlg.m_ofn.lpstrFile = buffer;
dlg.m_ofn.nMaxFile = 4096;
if(IDOK == dlg.DoModal())
for(POSITION pos=dlg.GetStartPosition(); pos != NULL;)
{
CString strFilePath = dlg.GetNextPathName(pos);
sarray->InsertNextValue(strFilePath);
}
else
return false;
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-04-17 02:22 jhChoi New Issue
======================================================================
More information about the vtk-developers
mailing list