Compare commits

...
5 changed files with 16 additions and 5 deletions
+10
View File
@@ -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)
+2 -2
View File
@@ -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")]
+2 -2
View File
@@ -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")]
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -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);