Hi
i'm developing an application baseb on FAQ#40
i would like to use like this :
make a header file testapp.h
class Probe{
public:
Probe();
~Probe();
void Load_File();
};
and the testapp.cxx
#include "dcmtk/config/osconfig.h"
#include "dcmtk/dcmdata/dctk.h"
#include "testapp.h"
Probe::Probe()
{
}
Probe::~Probe()
{
}
void MediaStorage::LoadFile()
{
DcmFileFormat fileformat;
OFCondition status = fileformat.loadFile("D:/imagenes dicom/CTBRAIN");
if (status.good())
{
OFString patientsName;
if (fileformat.getDataset()->findAndGetOFString(DCM_PatientsName, patientsName).good())
{
cout << "Patient's Name: " << patientsName << endl;
} else
cerr << "Error: cannot access Patient's Name!" << endl;
} else
cerr << "Error: cannot read DICOM file (" << status.text() << ")" << endl;
}
but i got this error:
testapp.obj : error LNK2001: símbolo externo "class DcmFileFormat fileformat" (?fileformat@@3VDcmFileFormat@@A) sin resolver.
could you help with this please
thanks for your help
Kmilo
Visual Studio 2005
Moderator: Moderator Team
-
- OFFIS DICOM Team
- Posts: 1456
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
See FAQ #27.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest