我想在MT4的脚本里调用vc++的库,并将一个窗体显示在当前的图表窗口中,
由于脚本执行与图表窗口运行在不同的线程中,导致报错,错误信息如下:
2015.03.26 14:49:34.890 Access violation read to 0xDDDDDF6D in 'C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\FF6486332E05B65B7E995E1DD5B90FBE\MQL4\Libraries\MT4toDLL.dll'
,同时还弹出一个提示框,其信息事下:
Microsoft Visual C++ Runtime Library
Debug Assertion Failed!
Program: C:\Windows\system32\mfc110ud.dll
File: f:\dd\vctools\vc7libs\ship\atlmfc\include\afxwin1.inl
Line: 24
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
中止(A) 重试(R) 忽略(I)
我要问的问题是,在不同线程中,如何用窗体的句柄来添加用户界面?