Delphi, I cannot set env variables to configure Image Magick

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
xor2
Posts: 1
Joined: 2014-07-25T01:56:41-07:00
Authentication code: 6789

Delphi, I cannot set env variables to configure Image Magick

Post by xor2 »

Hi,

I am a delphi user. I have included two units in my app in order to use Image Magick

Code: Select all

ImageMagick in 'C:\Program Files (x86)\Borland\Delphi7\Lib\Magick\magick\ImageMagick.pas',
magick_wand in 'C:\Program Files (x86)\Borland\Delphi7\Lib\Magick\wand\magick_wand.pas';
The problem is I need to set two variables se to let the libs know where to look for files:

DYLD_LIBRARY_PATH and
MAGICK_CODER_MODULE_PATH

Unfortunately Setting these paths using: SetEnvironmentVariable or _putenv_s from msvcrt.dll is not working and I cannot call MagickReadImage method.

When I open console window set these two variables by SET operation and run the app then everything is okay ...

What can i do?
Alexvb6
Posts: 49
Joined: 2012-10-12T16:50:15-07:00
Authentication code: 67789

Re: Delphi, I cannot set env variables to configure Image Magick

Post by Alexvb6 »

If you are on a computer you control (not the one of a customer), you could simply set the environment variables manually by clicking "Thic Pc" > "Properties" > "Advanced Properties" > "Environment Variables"
Post Reply