Results 1 to 2 of 2

Thread: [RESOLVED] DLL Resource Access

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Resolved [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?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: DLL Resource Access

    Quote 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.
    Quote 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
    Quote 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
  •  



Click Here to Expand Forum to Full Width