|
-
May 23rd, 2007, 08:27 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] DLL Resource Access
I have a DLL that was made in Delphi, this DLL converts BMP images to JPG images.
Carting around 2 files all the time can get messy, especially when installing 2 files into program files, or error happening when the DLL don't exist any more and this and that.
So i have put the DLL as a resource into my project.
How would i still be able to call API calls with this DLL even though it is a resourse now?
Would i just leave it as "Converter.DLL" and it will instantly know which file i'm talking about inside my exe? If not, then how could this be achieved?
-
May 23rd, 2007, 10:46 AM
#2
Re: DLL Resource Access
 Originally Posted by Slyke
How would i still be able to call API calls with this DLL even though it is a resourse now?
You won't.
 Originally Posted by Slyke
Would i just leave it as "Converter.DLL" and it will instantly know which file i'm talking about inside my exe?
In a word, No
 Originally Posted by Slyke
If not, then how could this be achieved?
I'm afraid the only way the .Dll is going to be accessed is the way it is being accessed now.
It needs to physically reside on the PC, and the most important part, and the part that you can not do if it is in a Resource file, it MUST be registered with the OS.
You can cart it around in the resource file if you wish. But, to use it, you will need to install and register it.
The alternative would be to rewrite the Delphi code inside a Class Module, and include the Class Module with your program.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|