MapViewOfFile 使用解决

MQL5 Other Design

Specification

我使用本文的共享内存来完成我的EA交易 ,

但问题是:

MQL4 可以正常使用


MQL5不能


          string  Account="123456";

       string mapname_acc="Local\\"+Account;  

      int hmem=OpenFileMappingW(FILE_MAP_ALL_ACCESS, 0, mapname_acc);

     int view=MapViewOfFile(hmem, FILE_MAP_ALL_ACCESS, 0, 0, 0);  --到此处不能正常返回正确句柄




https://www.mql5.com/zh/articles/364

Responded

1
Developer 1
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 0%
Overdue
0
Working
2
Developer 2
Rating
Projects
1
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
30+ USD