Search found 61 matches

by Chung-Yueh Lien
Fri, 2019-03-15, 09:26
Forum: DCMTK - General
Topic: Problem in usig sendMOVERequest
Replies: 0
Views: 84886

Problem in usig sendMOVERequest

The version of dcmtk is 3.6.v3.6.4 2018-11-29, that I compiled as MSVC 32 bits with Visual Stuido 2015. I used the sendMOVERequest in class DcmSCU. When I turn off move destinat, and the result always returns OF_ok. However, I think it should return some error status code. dcmqrscp and conQuest Serv...
by Chung-Yueh Lien
Wed, 2018-05-16, 08:31
Forum: DCMTK - General
Topic: the function copy() of OFString returns wrong length
Replies: 8
Views: 5736

Re: the function copy() of OFString returns wrong length

The question is: why do you use the copy() method at all? I usually write an C interface to wrap native DLL for calling by other program language such as C/C++, C#, VB. When I design the string arguments to DLL function, the data type of OFString will be transferred to char* allowing other program ...
by Chung-Yueh Lien
Wed, 2018-05-16, 07:51
Forum: DCMTK - General
Topic: the function copy() of OFString returns wrong length
Replies: 8
Views: 5736

Re: the function copy() of OFString returns wrong length

Hi Jörg,

I assigned a null character at the end of position, code like this

Code: Select all

char *str = new char[Req.size()+1];
Req.copy(str, Req.size());
str[Req.size()+1]='\0';
However, I hope OFString::copy() could solve this problem as well.

Thank you for your reply.
by Chung-Yueh Lien
Tue, 2018-05-15, 10:14
Forum: DCMTK - General
Topic: the function copy() of OFString returns wrong length
Replies: 8
Views: 5736

Re: the function copy() of OFString returns wrong length

The result is the same. could it be that simple that your char array is one byte too short? BTW, the dcmtk-3.6.1_20121102 does not have this problem. Also I tested strncpy() and strcpy to copy string from OFString. OFString Req = "PatientID=AV35674&ScheduledProcedureStepSequence.ScheduledPr...
by Chung-Yueh Lien
Tue, 2018-05-15, 04:34
Forum: DCMTK - General
Topic: the function copy() of OFString returns wrong length
Replies: 8
Views: 5736

the function copy() of OFString returns wrong length

Hi, I found a problem while using the function copy(). The test code is shown as following: OFString Req = "PatientID=AV35674&ScheduledProcedureStepSequence.ScheduledProcedureStepStartDate=20180508"; char *str = new char[Req.size()]; Req.copy(str, Req.size()); COUT << "size:"...
by Chung-Yueh Lien
Wed, 2014-05-28, 05:05
Forum: DCMTK - Installation
Topic: LIBICONV_SECOND_ARGUMENT_CONST - Failed
Replies: 6
Views: 19404

Re: LIBICONV_SECOND_ARGUMENT_CONST - Failed

hi, I don't find "offical" way to compile libiconv v1.14 in windows(windows compilation only support in v1.11), all I found the approch (v1.14) is need to modify header files in libiconv, but I not sure these modified headers is suitable for dcmtk 3.6.1.(I tried, but faild list above) May ...
by Chung-Yueh Lien
Wed, 2014-05-28, 05:00
Forum: DCMTK - General
Topic: Suggestion for supporting DICOM JSON Module
Replies: 1
Views: 3102

Suggestion for supporting DICOM JSON Module

Hello all, Since many DICOM applications had been toward to mobile solution. I think it would be helpful to add the warpping function to convert the DICOM object into JSON format. Although DCMTK has already support DICOM Native XML. However, the DICOM XML is not small enough for wireless network whi...
by Chung-Yueh Lien
Tue, 2013-08-27, 21:54
Forum: DCMTK - General
Topic: DcmTLSSCU negotiateAssociation fails
Replies: 9
Views: 11826

Re: DcmTLSSCU negotiateAssociation fails

varDcmScu.addPresentationContext(UID_VerificationSOPClass, ts); you have to add the SOPClassUID from the "D:\Cert\test.dcm" like varDcmScu.addPresentationContext(Input's StorageSOPClass, ts); For debug, I suggest you using functions like DcmTLSSCU::getAuthenticationParams(), DcmTLSSCU::di...
by Chung-Yueh Lien
Thu, 2013-08-22, 08:57
Forum: DCMTK - General
Topic: DcmTLSSCU negotiateAssociation fails
Replies: 9
Views: 11826

Re: DcmTLSSCU negotiateAssociation fails

But the trusted certificate file added using addTrustedCertFile() function are not set in DcmTLSTransportLayer using m_tLayer->addTrustedCertificateFile() function in DcmTLSSCU::initNetwork(). How do I add the trusted certificate file to DcmTLSTransportLayer ? Did you try DcmTLSSCU::addTrustedCertD...
by Chung-Yueh Lien
Tue, 2013-08-13, 14:01
Forum: DCMTK - General
Topic: DcmTLSSCU negotiateAssociation fails
Replies: 9
Views: 11826

Re: DcmTLSSCU negotiateAssociation fails

For setReadSeedFile fucntion, used randseed.txt in dcmtls\docs folder . This file is a guideline to create a "seed" file, which you should create by such OpenSSL or other tools instead of including it if you want use this option. E: 0006:0317 Peer aborted Association (or never connected) ...
by Chung-Yueh Lien
Mon, 2013-08-12, 17:33
Forum: DCMTK - General
Topic: Getting link error on using dcmtls
Replies: 5
Views: 7726

Re: Getting link error on using dcmtls

Hi Yogi These error messages indicate the incorrect link to OpenSSL library. You have to make sure some trips like 1. which version of dcmtk you used? 2. which option is configured ? "shared" or "static" ? 3. if you used shared option, did you include the dcmtkeay.dll and dcmtkss...
by Chung-Yueh Lien
Sat, 2013-08-10, 15:37
Forum: DCMTK - General
Topic: Getting link error on using dcmtls
Replies: 5
Views: 7726

Re: Getting link error on using dcmtls

Please check the option of "WITH_OPENSSL". And also check whether the path of OpenSSL library (dcmtkssl_d.lib, dcmtkssl_o.lib, dcmtkeay_d.lib, and dcmtkeay_o.lib ) properly are configured or not. If you use the shared library option to create DLLs, then you should check the dcmtkeay.dll an...
by Chung-Yueh Lien
Tue, 2013-07-16, 09:23
Forum: DCMTK - Installation
Topic: Errors while compiling dcmtk 3.6.0 with VC++ 6.0
Replies: 9
Views: 15889

Re: Errors while compiling dcmtk 3.6.0 with VC++ 6.0

LINK : warning LNK4049: locally defined symbol "_xmlFree" imported This warning seems harmless. It is caused originally from libxml2 while compiling in debug mode in MSVC. If you really want to fix it, you have to modify some source of libmxl2 by yourself and then re-compile libxml2 with ...