Recent

Author Topic: Apllication has failed to start because useless.dll was not found.  (Read 2787 times)

CM630

  • Hero Member
  • *****
  • Posts: 1435
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Here is the case:
An application shall be used with different devices (in my case DAQs), by different manufacturers.
On the PC on which I develop the app there are drivers, etc. for the different devices.
When I try to run the executable on a computer which has one of the devices, and respectively drivers only for it, the application cannot start, because it cannot find some of the files, declared as
function MyFunc: external 'something.DLL';.
I checked "conditional uses" but it does not seem like my case.
Since the application does not want to start at all, I think that try...except cannot help me.
Could I do something else, or I shall make different builds for different devices?

« Last Edit: June 19, 2013, 03:25:36 pm by paskal »
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

ttomas

  • Full Member
  • ***
  • Posts: 247
Re: Apllication cannot start because useless.dll was not found.
« Reply #1 on: June 19, 2013, 03:16:53 pm »
You use static loading of dll.
In you case you will need dynamic loading of dll.

 

TinyPortal © 2005-2018