Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Loading DLL file from TResourceSream (https://www.delphipraxis.net/67674-loading-dll-file-tresourcesream.html)

alpha1 18. Apr 2006 13:02


Loading DLL file from TResourceSream
 
Hello! I need here some help :wink:
I have added dll file to my program`s resource and I have this function:
Delphi-Quellcode:
function Test(prog: HWND): Boolean; stdcall; external 'mydll.dll' name 'DoSomethink';
so I need load dll file to this function from TResourceSream (without extractint from exe file).
I could be like this:
Delphi-Quellcode:
function Test(prog: HWND): Boolean; stdcall; external 'mydll_from_TResourceSream.dll' name 'DoSomethink';
How can I do this?
Thank`s! :wink:

marabu 18. Apr 2006 13:20

Re: Loading DLL file from TResourceSream
 
G'Day alpha1,

there is no syntax to support this, I'm afraid. But there sure is a way to start code right out of memory without storing it on some disk before. You might want to take a look at some demo code crafted by Nico and ready for download on Luckie's home page: klick

Wish you success

marabu


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:21 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz