Recent

Author Topic: Embedding dll files into executable file  (Read 6907 times)

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Embedding dll files into executable file
« on: February 25, 2010, 04:01:53 pm »

Hi all,

Is there anyway to embed dll files into the compiled application?
Thanks.

eny

  • Hero Member
  • *****
  • Posts: 1648
Re: Embedding dll files into executable file
« Reply #1 on: February 25, 2010, 05:30:39 pm »
How is Windows supposed to find the dll if it's hidden in the exe?

(You can always embed it as a binary resource, you just can't call the functions in it...)
All posts based on: Win10 (Win64); Lazarus 3_4  (x64) 25-05-2024 (unless specified otherwise...)

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: Embedding dll files into executable file
« Reply #2 on: February 25, 2010, 11:05:20 pm »
My suggestion would be to embed it as a resource when you need it extract it to a temporary file and delete it when the app closes.
It should work I think

 

TinyPortal © 2005-2018