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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 a callback method to load the dlls

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dcoun Posted - Sep 02 2025 : 05:55:57
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
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 04 2025 : 21:17:46
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
dcoun Posted - Sep 03 2025 : 01:34:27
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
xequte Posted - Sep 03 2025 : 01:23:49
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
dcoun Posted - Sep 03 2025 : 01:08:39
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
xequte Posted - Sep 03 2025 : 01:03:28
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