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
Help Inserting Multi-Valued fields using putAndInsertUint32
Moderator: Moderator Team
-
- Posts: 14
- Joined: Fri, 2013-01-04, 16:23
-
- DCMTK Developer
- Posts: 120
- Joined: Thu, 2009-11-26, 08:15
Who is online
Users browsing this forum: Google [Bot] and 0 guests