Visual Studio 2005

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Kmilo
Posts: 8
Joined: Wed, 2006-07-26, 05:58
Location: Bogota, Colombia

Visual Studio 2005

#1 Post by Kmilo »

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 :D

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1456
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

See FAQ #27.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest