Re: Windows MAGICK_CONFIGURE_PATH options

Bob Friesenhahn <[email protected]> Fri, 6 Mar 2020 12:12:48 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--3735943886-143946282-1583518368=:19876
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Fri, 6 Mar 2020, 10bxjfhf wrote:
>> 
>> /////////////
>> //
>> // ProvideDllMain
>> //
>> // When building GraphicsMagick using DLLs, include a DllMain()
>> // function which automatically invokes InitializeMagick(NULL), and
>> // DestroyMagick() so that the user doesn't need to.  Note that
>> // repeated calls to InitializeMagick() are ignored so if a path must
>> // be passed to InitializeMagick(), then disable this setting.
>> #define ProvideDllMain
>> 
> Although I have not tried this, I'd be very surprised if it worked - without 
> a lot of other things needing to be done.
>
> The dll main is required, at least under Win, to provide the entry point for 
> the DLL - I found it in nt_base.c

Some other libraries which are built as DLLs are not providing this 
functionality (e.g. libtiff).  It does not appear to be required.

At one time, this feature was not provided yet the software still 
worked.

> In fact this is where one would have to make sure the DLL found is compatible 
> with the version etc needed by the current app - i.e. compatible compiler 
> and/or version features.

It seems like modern Windows has ways to do this automatically (by 
imposing more work on the developer), but some automation is disabled 
if the DLL is in the same directory as the app.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt
--3735943886-143946282-1583518368=:19876
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--3735943886-143946282-1583518368=:19876
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Graphicsmagick-apis mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-apis

--3735943886-143946282-1583518368=:19876--