【问题标题】:Operand types are not compatible with the operator in ax 2012操作数类型与 ax 2012 中的运算符不兼容
【发布时间】:2018-03-06 11:19:45
【问题描述】:

对于下面的代码,我收到类似操作数类型与运算符不兼容的错误。操作数类型如下。

str fileName;
int hfile;
hfile = WinAPIServer::createFile(fileName); 

代码是直接从下面的链接复制过来的。

Link For The code from Where i Copied it

【问题讨论】:

    标签: axapta dynamics-ax-2012 x++ dynamics-ax-2012-r2 dynamics-ax-2012-r3


    【解决方案1】:

    createFile 的返回类型是void,因此您不能将它的“返回值”分配给任何变量。因此,该站点上显示的代码要么是错误的,要么是 createFile 的方法签名与我们的不同

    【讨论】:

    • 谢谢你 DAXaholic。明白了,问题通过删除返回变量得到纠正。
    • 很高兴听到!在这种情况下请接受答案
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-05-04
    • 2015-07-02
    • 2015-05-13
    • 1970-01-01
    • 2021-11-21
    • 2016-08-24
    • 2015-05-29
    相关资源
    最近更新 更多