Search found 15 matches

by mattywix
Tue, 2011-06-07, 16:44
Forum: DCMTK - General
Topic: jpeg_stdio_dest not being found on windows build
Replies: 5
Views: 7172

Thanks for the tip, but yes we have that for jpeg8.

I tried to hardcode the define in case it was missed:
#define jpeg_stdio_dest jpeg8_stdio_dest

And I also tried changing the method name to have the '8' but in all cases the windows build isnt linking the method in.
by mattywix
Tue, 2011-06-07, 09:58
Forum: DCMTK - General
Topic: Problems with curly bracket in macro BEGIN_EXTERN_C, END_EXTERN_C
Replies: 2
Views: 4039

Ignore the double forward slash - that was me hacking around in the code.

What happens is that the visual studio editor highlights the end macro and gives the standard message for when it cant resolve the macro.

By putting anything other than a curly brace, the editor no longer complains.
by mattywix
Tue, 2011-06-07, 09:56
Forum: DCMTK - General
Topic: jpeg_stdio_dest not being found on windows build
Replies: 5
Views: 7172

I have a new jpeg_stdio_dest. Why? because the current one used file handles instead of streams so is very inflexible. When I run the debugger and try to step into jpeg_stdio_dest it just jumps straight over as if the function pointer is null. It seems that it isnt linking to the jpeg_stdio_dest and...
by mattywix
Mon, 2011-06-06, 12:44
Forum: DCMTK - General
Topic: jpeg_stdio_dest not being found on windows build
Replies: 5
Views: 7172

Could this have something to do with "HAVE_PROTOTPYES" and __cdecl ?
by mattywix
Mon, 2011-06-06, 12:00
Forum: DCMTK - General
Topic: jpeg_stdio_dest not being found on windows build
Replies: 5
Views: 7172

jpeg_stdio_dest not being found on windows build

Hi Im building some custom code around your library. On Linux it works fine. Under windows it doesnt call the correct jpeg_stdio_dest - when I try debug it doesnt seem to be calling anything. Its as if it didnt see my implementation of jpeg_stdio_dest. Why would this problem only happen on windows. ...
by mattywix
Mon, 2011-06-06, 11:43
Forum: DCMTK - General
Topic: Problems with curly bracket in macro BEGIN_EXTERN_C, END_EXTERN_C
Replies: 2
Views: 4039

Problems with curly bracket in macro BEGIN_EXTERN_C, END_EXTERN_C

Hi I am having problems compiling on windows visual studio express 2010. These definitions are confusing the visual express tool because of the curly bracket: #ifdef __cplusplus #define BEGIN_EXTERN_C extern "C" { #define END_EXTERN_C // #else #define BEGIN_EXTERN_C #define END_EXTERN_C #e...
by mattywix
Fri, 2011-06-03, 14:42
Forum: DCMTK - Installation
Topic: Compilation of DCMTK-based program fails with LNK2019 [MSVC]
Replies: 7
Views: 18479

The practical answer is to add the 64 bit SDK library path to your build as the first directory: So your link path is something like this: C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64;..\zlib-1.2.5-cmake\lib;..\dcmtk-3.6.0-cmake\lib;%(AdditionalLibraryDirectories) Then make sure as per the F...
by mattywix
Thu, 2011-06-02, 11:28
Forum: DCMTK - General
Topic: 64 bit
Replies: 12
Views: 14405

Aha! - the trick is to install SDK7.1 not SDK7 SP1.

I also set an entry in cmake "PlatformToolset" to value 2Windows7.1SDK", but I dont know if that was necessary
by mattywix
Thu, 2011-06-02, 10:09
Forum: DCMTK - General
Topic: 64 bit
Replies: 12
Views: 14405

Thanks :) Im using Visual Studio C++ Express 2010 I also installed the Windows7 64bit SDK SP1 However the SDK installs the Visual C++ 9.0 Compilers. However cmake cannot find these compilers: CMake Error at CMakeLists.txt:2 (PROJECT): Cannot enable 64-bit tools with Visual Studio 2010 Express. Insta...
by mattywix
Wed, 2011-06-01, 16:25
Forum: DCMTK - General
Topic: 64 bit
Replies: 12
Views: 14405

Please could someone update this thread and advise how to compile for x64 windows when they have it figured out.
by mattywix
Fri, 2011-04-08, 17:41
Forum: DCMTK - General
Topic: How do I add to the built-in dictionary
Replies: 4
Views: 5801

Thanks :D
by mattywix
Fri, 2011-04-08, 17:19
Forum: DCMTK - General
Topic: How do I add to the built-in dictionary
Replies: 4
Views: 5801

Also, once Ive added the entry, can I delete or free all the items that were passed in as below? Does the dictionary make a copy and manage that? DcmDictEntry* e = new DcmDictEntry( key.getGroup(), key.getElement(), upperKey.getGroup(), upperKey.getElement(), vr, tagName, vmMin, vmMax, standardVersi...
by mattywix
Fri, 2011-04-08, 17:02
Forum: DCMTK - General
Topic: How do I add to the built-in dictionary
Replies: 4
Views: 5801

How do I add to the built-in dictionary

Hi i want to add entries to the default dictionary that is compiled into the library // make sure data dictionary is loaded if (!dcmDataDict.isDictionaryLoaded()) { ... }else{ dcmDataDict.addEntry(e); } Error: error: ‘class GlobalDcmDataDictionary’ has no member named ‘addEntry’ Please advise how I ...
by mattywix
Wed, 2011-04-06, 10:43
Forum: DCMTK - General
Topic: JNI wrapper over dcm2pnm: where does dcm2pnm.cc delete the DcmFileFormat instance?
Replies: 2
Views: 3599

Thanks for the prompt reply. I wrapped the app instead of the class as it was an easy way to work out what was required to invoke the dcm2pnm conversion and what options might be set. I have approached the dcm2xml in the same way. Then I started stripping back what I didn't need. Without a thorough ...
by mattywix
Wed, 2011-04-06, 09:59
Forum: DCMTK - General
Topic: JNI wrapper over dcm2pnm: where does dcm2pnm.cc delete the DcmFileFormat instance?
Replies: 2
Views: 3599

JNI wrapper over dcm2pnm: where does dcm2pnm.cc delete the DcmFileFormat instance?

I have wrapped some of the apps with JNI so I can invoke from Java. One of the methods I wrapped is main in dcm2pnm. I then changed it to stream in memory instead of reading/writing files. However I cannot see where the DcmFileFormat instance is deleted. I tried to add a delete line but it crashed s...