调用dll不行
显示不出需要的东西。
代码如下
if time = 100000 OR
time = 140000 THEN
begin
DRAWNUMBER(1, CLOSE, 6, 7);
"test_dll3@log_out2"();
end
这是策略
#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>
__declspec(dllexport) int log_out(char *str)
{
FILE *p;
p = fopen("d:/test_dll3.log", "at");
if ( !p )
{
return 1;
}
fprintf(p, str);
fclose(p);
return 0;
}
__declspec(dllexport) int log_out2()
{
FILE *p;
char str[] = "calling\n";
p = fopen("d:/test_dll3.log", "at");
if ( !p )
{
return 1;
}
fprintf(p, str);
fclose(p);
return 0;
}
这是dll
调用目的是对话框提示开仓价格止损价格以及止盈价格
[此贴子已经被作者于2012-10-10 18:17:05编辑过]