Help Inserting Multi-Valued fields using putAndInsertUint32

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
feldman_joel
Posts: 14
Joined: Fri, 2013-01-04, 16:23

Help Inserting Multi-Valued fields using putAndInsertUint32

#1 Post by feldman_joel »

i am having difficulty trying to simply add a multi-valued field. any help would be appreciated. here is a code snippet:

DcmItem *item_id_1 = new DcmItem();
result = item_id_1->putAndInsertUint32( DCM_ReferencedContentItemIdentifier /*(0040,DB73)*/,1, 0, OFTrue);
result = item_id_1->putAndInsertUint32( DCM_ReferencedContentItemIdentifier /*(0040,DB73)*/,2, 1, OFTrue);
result = item_id_1->putAndInsertUint32( DCM_ReferencedContentItemIdentifier /*(0040,DB73)*/,3, 2, OFTrue);

the first call to putAndInsertUint32 is successful, but the following calls generate an "Illegal call, perhaps the wrong parameters" message. simply put, i need tag (0040,DB73) to have a VM of 3 and contain 1\2\3. i have tried several combinations for the third parameter, which is the position, but have not had any success.

thanks in advance for your help,

joel

Uli Schlachter
DCMTK Developer
Posts: 120
Joined: Thu, 2009-11-26, 08:15

Re: Help Inserting Multi-Valued fields using putAndInsertUin

#2 Post by Uli Schlachter »

This is almost an exact duplicate of viewtopic.php?f=1&t=3660 and the answer will be the same.

Uli

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests