DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2017-04-29, 06:36

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed, 2014-06-18, 15:03 
Offline

Joined: Fri, 2014-06-13, 11:01
Posts: 5
Hi,

I'm looking at using the DCMRT module to read in some DICOM RT files and have downloaded the latest snapshot of DCMTK.

My development environment is Windows 7 using VS2010. I've successfully (I think!) used CMake to create the sln files and built all of the projects.

I'm now trying to integrate it into my application but I'm having problems. I've created a simple empty class as below

// DicomRTReader.h
#include "dcmtk/config/osconfig.h"
#include "dcmtk/dcmrt/drmdose.h"
#include "dcmtk/dcmrt/drmimage.h"
#include "dcmtk/dcmrt/drmplan.h"
#include "dcmtk/dcmrt/drmsrch.h"
#include "dcmtk/dcmrt/drmstrct.h"

#include "dcmtk/dcmrt/drtdose.h"
#include "dcmtk/dcmrt/drtimage.h"
#include "dcmtk/dcmrt/drtionpl.h"
#include "dcmtk/dcmrt/drtiontr.h"
#include "dcmtk/dcmrt/drtplan.h"
#include "dcmtk/dcmrt/drtstrct.h"
#include "dcmtk/dcmrt/drttreat.h"
#include "dcmtk/dcmrt/drttypes.h"

class DicomRTReader
{
public:
DicomRTReader(void){};
virtual ~DicomRTReader(void){};
private:
int data;
};

However I'm getting the following errors in the logging code.

error C2678: binary '+' : no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) tracelog.h 59
error C2678: binary '+' : no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) traceloog.h 64
error C2665: 'dcmtk::log4cplus::Logger::getInstance' : none of the 2 overloads could convert all the argument types logmacro.h 106

No doubt I'm missing an include file or project setting etc. but a pointer in the correct direction would be great.

Thank you,
Paul


Top
 Profile  
 
PostPosted: Wed, 2014-06-18, 15:22 
Offline

Joined: Fri, 2014-06-13, 11:01
Posts: 5
Ok my bad!

I should have more carefully checked other posts and thoroughly read the INSTALL file to see that DCMTK does not compile when UNICODE or _UNICODE is defined......which is what I had :(

Compiling now.

Thanks,
Paul


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group