Added projects MtApi4 and MtApi5

This commit is contained in:
Vyacheslav Demidyuk
2014-10-31 09:05:52 +02:00
parent 869d3a117b
commit 8746e96416
178 changed files with 26390 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
//MT4Handler.h
#pragma once
#include <Windows.h>
using namespace MTApiService;
ref class MT4Handler: IMetaTraderHandler
{
public:
MT4Handler()
{
msgId = RegisterWindowMessage("MetaTrader4_Internal_Message");
}
virtual void SendTickToMetaTrader(int handle)
{
PostMessage((HWND)handle, msgId, 2, 1);
}
private:
unsigned int msgId;
};