开发者

Compile ImageMagick in a single DLL

My application is built with C+开发者_Python百科+/MFC and links dynamically with ImageMagick. I have to deploy 130 (!) ImageMagick DLLs alongside my files when installing the app!

I would like to have a single DLL for the entire ImageMagick library instead of 130. Any ideas for how to do that?


The DLL uses the serach path. Place the ImageMagick.DLL in one directory that is included in the PATH.

If that's not possible, you can change the PATH variable. Add a path to the directory where one instance of the DLL resides.


Hmm, nobody ever complains about having to run their code on an operating system that has three thousand DLLs. Deploying one DLL isn't any easier than deploying 130 of them. Your customer won't mind. Hacking a library whose source code changes so frequently is something you'll regret deeply some day.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜