DLL not working when moved to a different machine

 

When I am building the DLL sample provided with meta-trader using Microsoft Visual C++ 2010 professional (building solution as a 32bit DLL), it seems to be working fine on the machine I am compiling it on.

But when I move the ex4 file, and the DLL file to a different machine (first machine is a windows 7 64bit ultimate, and the second is a windows 7 home premium 64bit), the DLL calls fail.

Anyone has suggestion what I may be doing wrong?

Thanks in advance,

 

fail without error messages, exceptions or anything? Hard to believe.

 
tfrdg:

When I am building the DLL sample provided with meta-trader using Microsoft Visual C++ 2010 professional (building solution as a 32bit DLL), it seems to be working fine on the machine I am compiling it on.

But when I move the ex4 file, and the DLL file to a different machine (first machine is a windows 7 64bit ultimate, and the second is a windows 7 home premium 64bit), the DLL calls fail.

Anyone has suggestion what I may be doing wrong?

Thanks in advance,


Figured it out:

It turns out that the file: vcredist_x86 has to be run on the target machine that want to run the DLL and ex4, if that machine does not have Microsoft Visual c++ installed.

For more details see:

http://msdn.microsoft.com/en-us/library/dd293574.aspx

The file is available for download at:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84

Reason: