Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: ImageMagick anyone? / Type Library unavailable for Install Component


This question is answered.


Permlink Replies: 2 - Last Post: Apr 29, 2016 1:41 AM Last Post By: Free Dorfman
Free Dorfman

Posts: 139
Registered: 2/4/12
ImageMagick anyone? / Type Library unavailable for Install Component  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 28, 2016 9:55 PM
(as posted at ImageMagick.org: https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=29564)

First-time user here. I just installed from ImageMagick-6.9.3-8-Q16-x64-dll.exe onto a Windows 10 machine.

The install is okay as far as command-line usage.

Now I want to import the Type Library (ImageMagickObject.dll) into Delphi (v10 Seattle Update 1). I don't think my problem is Delphi-specific.

When I go to Import Component, the list of Registered Type Libraries (which is quite extensive) doesn't list IM.

If I go to Add one, upon selecting ImageMagickObject.dll, I get an Error loading type library/DLL (80029C4A).

During installation, I selected:
-Install development headers and libraries for C and C++
-Install ImageMagickObject OLE Control for VBScript, Visual Basic and WSH

From the research I've done/Additional notes:

*http://imagemagick.org/script/api.php#pascal states PascalMagick a Pascal binding for the MagickWand API and also the low-level MagickCore library. It works with Free Pascal / Lazarus and Delphi.

*I've tried placing the DLL in C:\Windows; I've tried placing the ImageMagickObject.dll location on the Path.

*I did a fair amount of research, and still I know of no other way to see the list of all the Registered Type Libraries on my system than inside the Delphi IDE. If I knew of one, I'd certainly look there. Although, my strong sense is that it isn't there.

Does anyone have any thoughts or suggestions?

Ultimately I want to make IM calls from within a Delphi (OO Pascal) program.

I thought (still think?) the easiest way would be to import the IM Type Library. I've done the with Excel, Word, and some very specific third-party tools.

http://wiki.freepascal.org/PascalMagick makes it seem like this should (practically) be a breeze. And yet I'm stuck at the starting line.

Any help would be greatly appreciated.

-Free Dorfman
Angus Robertson

Posts: 205
Registered: 3/17/00
Re: ImageMagick anyone? / Type Library unavailable for Install Component
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 29, 2016 12:34 AM   in response to: Free Dorfman in response to: Free Dorfman
First-time user here. I just installed from
ImageMagick-6.9.3-8-Q16-x64-dll.exe onto a Windows 10 machine.
If I go to Add one, upon selecting ImageMagickObject.dll, I get
an Error loading type library/DLL (80029C4A).

Know nothing about that library, but Delphi is a 32-bit development
environment, it will not recognise 64-bit DLLs. So you need to install
a 32-bit version of ImageMagick to get the type library.

Delphi will generate 64-bit applications that will load 64-bit DLLs,
just be careful to match platforms.

Angus
Free Dorfman

Posts: 139
Registered: 2/4/12
Re: ImageMagick anyone? / Type Library unavailable for Install Component  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 29, 2016 1:41 AM   in response to: Angus Robertson in response to: Angus Robertson
Know nothing about that library, but Delphi is a 32-bit development
environment, it will not recognise 64-bit DLLs. So you need to install
a 32-bit version of ImageMagick to get the type library.

Angus: you nailed it. Thanks.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02