Skip to content

Commit 3753f17

Browse files
author
Austen Conrad
committed
Reverted to dynamically linked DLL as MetaTrader requires this.
1 parent ad01be2 commit 3753f17

File tree

3 files changed

+0
-56
lines changed

3 files changed

+0
-56
lines changed

mql4zmq.c

-28
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,6 @@
2626
2727
libzmq.dll NOTE: After building the solution, copy ../../../lib/libzmq.dll to c:\Windows\SysWOW64\libzmq.dll so that our bindings and other applications can access ZeroMQ.
2828
29-
NOTE: if error #126 happens on loading of mql4zmq.dll then we need to make certain that the DLL is statically linking it's dependencies. Below are directions on how
30-
to do this. Originally taken from: http://www.rhyous.com/2010/09/16/avoiding-the-msvcr100-dll-or-msvcr100d-dll/
31-
32-
Statically Linking the DLLs
33-
34-
Make sure you resolve it for both Release and Debug. The steps are slightly different.
35-
36-
Release
37-
38-
In Visual Studio, I went to the project Properties.
39-
I changed my Configuration to Release.
40-
I went under Configuration Properties | C/C++ | Code Generation
41-
Look at the Runtime Library setting. It is set to this: Multi-threaded DLL (/MD)
42-
Change it to this: Multi-threaded (/MT)
43-
Rebuild.
44-
45-
Debug
46-
47-
Almost exactly the same as release.
48-
49-
In Visual Studio, I went to the project Properties.
50-
I changed my Configuration to Debug.
51-
I went under Configuration Properties | C/C++ | Code Generation
52-
Look at the Runtime Library setting. It is set to this: Multi-threaded Debug DLL (/MDd)
53-
Change it to this: Multi-threaded Debug (/MTd)
54-
Rebuild the debug
55-
56-
===================================
5729
*/
5830

5931
// Include the original libzmq header file.

mql4zmq.h

-28
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,6 @@
2626
2727
libzmq.dll NOTE: After building the solution, copy ../../../lib/libzmq.dll to c:\Windows\SysWOW64\libzmq.dll so that our bindings and other applications can access ZeroMQ.
2828
29-
NOTE: if error #126 happens on loading of mql4zmq.dll then we need to make certain that the DLL is statically linking it's dependencies. Below are directions on how
30-
to do this. Originally taken from: http://www.rhyous.com/2010/09/16/avoiding-the-msvcr100-dll-or-msvcr100d-dll/
31-
32-
Statically Linking the DLLs
33-
34-
Make sure you resolve it for both Release and Debug. The steps are slightly different.
35-
36-
Release
37-
38-
In Visual Studio, I went to the project Properties.
39-
I changed my Configuration to Release.
40-
I went under Configuration Properties | C/C++ | Code Generation
41-
Look at the Runtime Library setting. It is set to this: Multi-threaded DLL (/MD)
42-
Change it to this: Multi-threaded (/MT)
43-
Rebuild.
44-
45-
Debug
46-
47-
Almost exactly the same as release.
48-
49-
In Visual Studio, I went to the project Properties.
50-
I changed my Configuration to Debug.
51-
I went under Configuration Properties | C/C++ | Code Generation
52-
Look at the Runtime Library setting. It is set to this: Multi-threaded Debug DLL (/MDd)
53-
Change it to this: Multi-threaded Debug (/MTd)
54-
Rebuild the debug
55-
56-
===================================
5729
*/
5830

5931
//Setup for "C" linkage instead of "C++" linkage.

pre-compiled/mql4zmq.dll

-25.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)