0
0

Anybody made headers for dynamically loading of the dll in delphi already?

  • You must to post comments
0
0

Btw, fmodex works just fine in delphi 5-7. I guess, I have to create some header to load the dll dynamically, but I dont know if anybody would be interested in such header.
One major problem for me is that I want my executables as a single exe, which runs from wherever, so I want to add the dll to the resource and extract the dll at runtime and save it to disk. That was great with fmod 3, and it looks like fmodex will not get delphi support (even I dont know why not).

  • You must to post comments
0
0

[quote="softtouch":2sr8f6jj]Btw, fmodex works just fine in delphi 5-7. I guess, I have to create some header to load the dll dynamically, but I dont know if anybody would be interested in such header.
One major problem for me is that I want my executables as a single exe, which runs from wherever, so I want to add the dll to the resource and extract the dll at runtime and save it to disk. That was great with fmod 3, and it looks like fmodex will not get delphi support (even I dont know why not).[/quote:2sr8f6jj]I’m not quite sure that manually embedding the library into your executable is acceptable under the terms of the FMOD license – I’d make sure and check that with brett if you haven’t already!

Anyway, why not just make a self-extractor if you want a single file to distribute? Then your EXE will run fine because the DLL is already there. I believe the WinZip Self Extractor tool is capable of doing this, and even cleaning up the files after execution completes.

  • You must to post comments
0
0

I was thinking about self extracting exe, but if the app is for example on cd, the user would have to extract the files to harddisk… I just dont want that, I want the exe running from wherever without the user has to chose a folder to extract the files etc, know what I mean?
If the dll is embedded in the exe, I just could extract the dll into the temp folder of the users computer, he could run my exe from cd.
This is what I am planning to do, but of brett does not allow this kind of “dll transport to the users computer”, I will just forget it, no problem.

  • You must to post comments
0
0

[quote="softtouch":1loa8llg]I was thinking about self extracting exe, but if the app is for example on cd, the user would have to extract the files to harddisk… I just dont want that, I want the exe running from wherever without the user has to chose a folder to extract the files etc, know what I mean?
If the dll is embedded in the exe, I just could extract the dll into the temp folder of the users computer, he could run my exe from cd.
This is what I am planning to do, but of brett does not allow this kind of “dll transport to the users computer”, I will just forget it, no problem.[/quote:1loa8llg]If the DLL file is next to your EXE on the CD, the EXE will find the DLL as normal. If you don’t understand this, read up on MSDN about how Windows locates DLL files.

  • You must to post comments
0
0

[quote="Janus":3uxub39y][quote="softtouch":3uxub39y]I was thinking about self extracting exe, but if the app is for example on cd, the user would have to extract the files to harddisk… I just dont want that, I want the exe running from wherever without the user has to chose a folder to extract the files etc, know what I mean?
If the dll is embedded in the exe, I just could extract the dll into the temp folder of the users computer, he could run my exe from cd.
This is what I am planning to do, but of brett does not allow this kind of “dll transport to the users computer”, I will just forget it, no problem.[/quote:3uxub39y]If the DLL file is next to your EXE on the CD, the EXE will find the DLL as normal. If you don’t understand this, read up on MSDN about how Windows locates DLL files.[/quote:3uxub39y]

Maybe you dont understand what I want. Believe me, I know how Windows locate dll’s. I do the programming job since 1980. What I want is a SINGLE exe, NO external dll’s on the media. I do that with all other dll’s, they are all embedded in the exe. My executables do not need an installer at all, it extract whatever is needed at runtime, either from resource or from attached zip.

But as I mention, if Brett does not allow the distribution of his dll whiat way, its ok, if he allow it, I just need new headers. I am not discussing here how to load dll’s etc., I was asking for headers for dynamic loading.

Regards
Guenter

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.