LEADTOOLS Support
General
General Questions
(LT14)Load Image using API L_DICOMGETIMAGE + VB6.0
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, May 10, 2013 2:24:10 AM(UTC)
Groups: Registered
Posts: 26
Hi,
Attached herewith a sample in which I want to load DICOM image into LEADRasterView by API DICOMDS.
Used are the API calls L_DicomCreateDS, L_DicomLoadDS, L_DicomFindFirstElement, L_DicomGetImage.
Function OpenDicomDS in frmLoadImage opens a dataset, where the problem is while reading L_DICOMGetImage.
modAPIDeclarations.bas is the module where the api's are declared along with types.
The versions of the files referenced are:
LTRVW14N.ocx v14.5.0.77
LTDIC14N.dll v14.5.0.2
LTKRN14N.dll v14.5.0.2
LTOCX14N.dll 14.5.0.1
Looking to find out the solution or a way out.
Regards,
#2
Posted
:
Monday, May 13, 2013 6:31:13 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
You are using old build of LEADTOOLS v14.5 dlls. To obtain the latest patches, please send your LEADTOOLS v14.5 serial number (don't post it here) in a new email to
support@leadtools.com and mention this forum post.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Monday, May 13, 2013 10:31:21 PM(UTC)
Groups: Registered
Posts: 26
Hi Maen,
Thanks for your reply.
I do have patch of v14.5.0.82.
The API I am using is from LTDIC14n.dll and its not within the same patch.
Basically the declaration of L_DICOMGETIMAGE is not correct as I guess. Still trying to update the patch of 14.5.0.82.
But do you think after updating the patch it will solve the problem of what I am trying in attached sample ?
#4
Posted
:
Tuesday, May 14, 2013 5:39:43 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
I rechecked your code and found the following problems:
1. You are passing vbNull to L_DicomGetImage. You should pass "0" instead of vbNull.
2. You are declaring the functions using LTDIC14n.dll and LTkrn14v.dll. You shouldn't use these DLLs because you are using the LEADTOOLS COM programming interface. You should use the LTDICKRN14N.DLL and LTR14N.DLL.
I am attaching the modified project. Please check the attached project and let me know if you have any comments.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
General
General Questions
(LT14)Load Image using API L_DICOMGETIMAGE + VB6.0
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.