XBasic3000
XBasic3000

Reputation: 3486

Problem Installing My custom component that uses dll

I created a TCustomComponent and i am having problem on installing it. Error Message "????.dll not found and cannot install package". but it work if you copy it to the system directory.

My question is, how to make my component installed like normal component without copying the .dll to the system directory or into the library.

i tried Adding the SearchPath and OPtions>Environment Variables and still not working. any ideas?

Upvotes: 2

Views: 546

Answers (1)

Mason Wheeler
Mason Wheeler

Reputation: 84550

The search path and options environment variables are for the compiler, not the IDE's loading. The Delphi IDE loads the component packages and hosts them in its own memory space, so it follows the standard Windows rules on DLL loading. You'll need to either put your DLL in the same folder as BDS.exe, or somewhere on the system search path.

Upvotes: 3

Related Questions