error 126 - can't load dll

 

Hello everyone.

I am having a problem with a DLL I created in Visual Studio 2010 express. It loads and runs fine on my Windows 7 system but won't run on a friends Windows 7 system. The EA logs an error 126. I checked the forum and found advice for others with similar problems.

I confirmed the following is setup correctly

- the DLL is in the experts/library folder

- MetaTrader tools - options has been set to allow loading DLLs

I downloaded and ran the depend.exe file and it showed a dependency on MSVCR100D.DLL

I then copied this file as well as all my MFCxxxx.DLL and MSVCxxxx.DLL files to his \Windows\System32 directory but am still getting the same error.

If anyone has any ideas on whats wrong or what else I can try please reply to this post.

Thanks.