Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共7 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:调用dll失败!

1楼
双保险 发表于:2012/10/10 18:15:10

 
 调用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
2楼
双保险 发表于:2012/10/10 18:16:53

调用目的是对话框提示开仓价格止损价格以及止盈价格

[此贴子已经被作者于2012-10-10 18:17:05编辑过]
3楼
jzt3321 发表于:2012/10/10 21:33:03
..待工作人员解答
4楼
jzt321123 发表于:2012/10/10 21:36:55
还没搞清楚dll与金字塔衔接的原理 同问
5楼
jzt3321 发表于:2012/10/10 21:38:26
LZ,你试试用vba的弹出对话框提示开仓价格止损价格以及止盈价格,看看这样行不。
6楼
双保险 发表于:2012/10/11 6:25:47
vba也不行。您有具体代码供参考吗?
7楼
王锋 发表于:2012/10/11 8:51:28
http://www.weistock.com/bbs/dispbbs.asp?BoardID=5&ID=12765
共7 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.02734 s, 2 queries.