Skip to content

编译成功,但执行出错! #23

@romejiang

Description

@romejiang

环境:

windows7 64位
vs2013 Community

执行过程:

git clone 之后,直接打开项目,将csharp/QuantBox.XAPI项目的编译目标改成console程序。编译整个解决方案。

然后运行QuantBox.XAPI.exe,报错LoadLibraryEx加载 C:\Program Files\SmartQuant Ltd\OpenQuant 2014\XAPI\CTP\x86\QuantBox_CTP_Trade.dll 文件,不是有效的 Win32 应用程序。

运行QuantBox_XAPI_TEST.exe,报错显示:
无法定位程序输入点 ?Output@CMsgQueue@@MAEXPAUResponeItem@@@z 于动态链接库 QuantBox_Queue_x86.dll 上。

疑问:

  1. LoadLibraryEx 加载 QuantBox_CTP_Trade.dll 为什么会报错?QuantBox_CTP_Trade.dll 是使用32位编译的啊!?
  2. QuantBox_XAPI_TEST.exe 整个代码里也没有加载 QuantBox_Queue_x86.dll 的代码?为什么会报这个错?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions