This is starting to bug me, really.
I've searched these forums for 3 days, but found no answer, I've googled 'till my eyes bled but still I haven't found a solution...

In a project I'm currently working on I need the ability to compress files, so I decided to use BZIP2 compression as I've used it before and it works well, so to save some time I simply copied the code from a previous project;

Code:
Private Declare Function z2Compress Lib "libbz2.dll" Alias "BZ2_bzBuffToBuffCompress" (Dest As Any, destLen As Long, Source As Any, ByVal sourceLen As Long, ByVal blockSize100k As Long, ByVal Verbosity As Long, ByVal workFactor As Long) As Long
Now, this DLL-file, libbz2.dll is compiled using VC++ from the latest BZIP2 source (1.0.4), and works just fine in the other project.
However, whenever I attempt to use the "z2Compress" function in this project I get a "Run-time error 53: File not found: libbz2.dll", and this file is located in the same folder as the project files.
It works just fine though, if I statically declare the path to the file:

Code:
Private Declare Function z2Compress Lib "c:\my_project\libbz2.dll" Alias "BZ2_bzBuffToBuffCompress" (Dest As Any, destLen As Long, Source As Any, ByVal sourceLen As Long, ByVal blockSize100k As Long, ByVal Verbosity As Long, ByVal workFactor As Long) As Long
Though that is out of the question, once compiled, this project is not not meant to run from a static path, it's supposed to be able to run from where ever.

I'm losing my mind over this...any ideas on why it can't find the file?
I'd really, REALLY appreciate some help on this.