>>UPDATE. I got it to work using InvokeStaticMethod, e.g. I'm getting the result. The only problem is that this dll reads one setting from the ini file and it's not finding that ini file and therefore the result is not what I want to get.
>
>Do you mean the YourExe.config file? If so that file needs to be with the executing EXE. So if you're running in Fox IDE it'll be vfp.exe.config. If you're running your actual exe it'll be YourExe.exe.config.
>
>+++ Rick ---
>
No, I mean our dll is supposed to read some setting from an external .ini file. I got some troubles getting tests to run successfully locally as it was not finding the .ini file. But eventually after some modifications in the code I was able to get all tests to run in Visual Studio IDE.
But now the challenge is to make that same dll work from VFP and I ran into the same problem - it doesn't find that .ini file. Since I can not test that DLL from VFP, I am not sure where to place that .ini file and how to name it. I sent this question to my colleague who developed that class.
If it's not broken, fix it until it is.
My Blog