ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 a callback method to load the dlls
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

dcoun

Greece
15 Posts

Posted - Sep 02 2025 :  05:55:57  Show Profile  Reply
Hi,
Imageen has a number of dlls that I do not want to be available to the user and they can cause problems, even security concerns.
For 64 bit programs, I am using the following to save as Resource the dll in the exe and load it when needed:
https://github.com/tinyBigGAMES/Dlluminator
Is it possible to have the possibility to have a callback method to load the dll and return the handle?
Everything else is done without any special function.
thank you in advance

xequte

39135 Posts

Posted - Sep 03 2025 :  01:03:28  Show Profile  Reply
Hi

Firstly, all the standard ImageEn DLLs are optional. There is only limited functionality that is lost if the DLLs are not used (image formats)

http://www.imageen.com/help/ImageEn_DLLs.html

With regard to your question, ImageEn DLLs are loaded in the standard Window fashion, e.g.

Handle := SafeLoadLibrary( 'ielib32.dll' );

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

dcoun

Greece
15 Posts

Posted - Sep 03 2025 :  01:08:39  Show Profile  Reply
I know that, but for pdf functions, for translated labels, they are not optional.
My request, is to have the possibility to have a callback function as a replacement for this line with the Safeloadlibrary, in order to be able to use the dlls embedded in the executable and an other callback to state that this dll can be provided.
Thank you in advance
Go to Top of Page

xequte

39135 Posts

Posted - Sep 03 2025 :  01:23:49  Show Profile  Reply
Sorry, can you give me some example code so I can understand your requirement better.

If you are referring to the PDFium DLLs, e.g. iepdf32.dll, then we cannot modify those, because they are not compiled by us (they are an open source DLL).

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

dcoun

Greece
15 Posts

Posted - Sep 03 2025 :  01:34:27  Show Profile  Reply
I do not request to modify any dll.
I am requesting to have something like the following, ex in iexPdfiumLib.pas:

{$IFDEF CUSTOMDLLLOADING}
If assigned(customDllLoad) then
PdfiumModule := customDllLoad(pdfium_dll);
{$else}
if DllFileName <> '' then
PdfiumModule := SafeLoadLibrary(DllFileName)
else
PdfiumModule := SafeLoadLibrary(pdfium_dll);
{$endif}

and customDllLoad can be a function reference to a custom dll loading

And the same for the checking that the dll is available

Now, I have to modify the ImageEn source everytime I install its update.

With the proposed change :
- you do not change anything else in ImageEN code,
- custom dll loading can be available as a resource in the exe
Go to Top of Page

xequte

39135 Posts

Posted - Sep 04 2025 :  21:17:46  Show Profile  Reply
I see. I'll try to get that into the next release of ImageEn (the one after next week's release).



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: