mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-13 10:48:08 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e33ba5b51f | ||
|
|
a0a4263e24 | ||
|
|
5d18dd4ad3 | ||
|
|
03ff1f9176 |
@@ -208,6 +208,16 @@ _DLLAPI int _stdcall sendMqlRatesArrayResponse(int expertHandle, CMqlRates value
|
|||||||
}, err, 0);
|
}, err, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_DLLAPI bool _stdcall sendErrorResponse(int expertHandle, int code, wchar_t* message, wchar_t* err)
|
||||||
|
{
|
||||||
|
return Execute<bool>([&expertHandle, &code, message]() {
|
||||||
|
MtResponseString^ res = gcnew MtResponseString(gcnew String(message));
|
||||||
|
res->ErrorCode = code;
|
||||||
|
MtAdapter::GetInstance()->SendResponse(expertHandle, res);
|
||||||
|
return true;
|
||||||
|
}, err, false);
|
||||||
|
}
|
||||||
|
|
||||||
//----------- get values -------------------------------
|
//----------- get values -------------------------------
|
||||||
|
|
||||||
_DLLAPI int _stdcall getCommandType(int expertHandle, int* res, wchar_t* err)
|
_DLLAPI int _stdcall getCommandType(int expertHandle, int* res, wchar_t* err)
|
||||||
|
|||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.31.0")]
|
[assembly: AssemblyVersion("1.0.32.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.31.0")]
|
[assembly: AssemblyFileVersion("1.0.32.0")]
|
||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.21")]
|
[assembly: AssemblyVersion("1.0.22")]
|
||||||
[assembly: AssemblyFileVersion("1.0.21")]
|
[assembly: AssemblyFileVersion("1.0.22")]
|
||||||
|
|||||||
Binary file not shown.
+2
-1
@@ -1,7 +1,7 @@
|
|||||||
#property copyright "Vyacheslav Demidyuk"
|
#property copyright "Vyacheslav Demidyuk"
|
||||||
#property link ""
|
#property link ""
|
||||||
|
|
||||||
#property version "1.6"
|
#property version "1.7"
|
||||||
#property description "MtApi (MT5) connection expert"
|
#property description "MtApi (MT5) connection expert"
|
||||||
|
|
||||||
#include <json.mqh>
|
#include <json.mqh>
|
||||||
@@ -172,6 +172,7 @@ void OnBookEvent(const string& symbol)
|
|||||||
|
|
||||||
int preinit()
|
int preinit()
|
||||||
{
|
{
|
||||||
|
StringInit(_error,1000,0);
|
||||||
StringInit(_response_error,1000,0);
|
StringInit(_response_error,1000,0);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
|||||||
Reference in New Issue
Block a user