how to use declares

I want to use declares
i have a dll file (SlpApi7x32.dll),
when i compile my project i gets error as - Failed to load library SlpApi7x32, The specified module could not be found.

where should i place this dll so that it will get accessed by my project ?

or is the error related to my code ?

This could help:

https://blog.xojo.com/2018/06/03/which-dlls-can-i-move-and-where/

https://blog.xojo.com/2014/01/03/accessing-net-code-from-xojo/

also this one :
https://gumroad.com/l/lcGH

The presence of 32 in the dll name is fearful.

are you building a 32 bit or 64 bit app ?
is the dll 32 bit or 64 bit ?
a 32 bit app cannot use a 64 bit dll
a 64 bit Xojo app cannot use a 32 bit dll

[quote=454560:@Norman Palardy]are you building a 32 bit or 64 bit app ?
is the dll 32 bit or 64 bit ?
a 32 bit app cannot use a 64 bit dll
a 64 bit Xojo app cannot use a 32 bit dll[/quote]

i am building 32 bit app and using 32 bit dll.
now i have used soft declares and i get “Method not found” error on method call.

The dll must be in the system search path, next to the .exe, or in the Libs folder. Where is the dll relative to your exe?