MT4 EA dll does not work with MT5

 
I have a .dll which worked in MT4 but I get "Cannot import [function]" on Vista 64 bit, and "Cannot load [dll path]" on XP.  Are there any special steps that must be taken to make a C++ dll work with a MT5 EA?
 

Give us an example.

Which DLL and which function did you try to use? How did you do it?

 

When I download and test code from this article it happens, no changes made to code.  Dll is placed in Libraries folder after compiling.

 I get a "Cannot import.." error for every function in the dll that is used in the EA.

https://www.mql5.com/en/articles/18 

How to Exchange Data: A DLL for MQL5 in 10 Minutes
  • 2010.01.27
  • MetaQuotes Software Corp.
  • www.mql5.com
Now not so many developers remember how to write a simple DLL, and what are special features of different system binding. Using several examples, I will try to show the entire process of the simple DLL's creation in 10 minutes, as well as to discuss some technical details of our binding implementation. I will show the step-by-step process of DLL creation in Visual Studio with examples of exchanging different types of variables (numbers, arrays, strings, etc.). Besides I will explain how to protect your client terminal from crashes in custom DLLs.
Reason: