我想在现金操作期间配置特定的票据类型
输入参数应采用以下格式:LPUSHORT lpusNoteIDs;
当我执行以下命令时,我收到无效数据错误(-52)
LPUSHORT* lpusNoteIDs;
lpusNoteIDs = (LPUSHORT*)malloc(7*sizeof(LPUSHORT));
for(int i =0;i<7;i++)
{
lpusNoteIDs[i]=(LPUSHORT)malloc(sizeof(USHORT));
}
lpusNoteIDs[0] = (LPUSHORT)0x2700;
lpusNoteIDs[1] = (LPUSHORT)0x2710;
lpusNoteIDs[2] = (LPUSHORT)0x2701;
lpusNoteIDs[3] = (LPUSHORT)0x2711;
lpusNoteIDs[4] = (LPUSHORT)0x2721;
lpusNoteIDs[5] = (LPUSHORT)0x2732;
lpusNoteIDs[6] = (LPUSHORT)0x2704;
hResult = WFSExecute(hService, WFS_CMD_CIM_CONFIGURE_NOTETYPES, (LPVOID)lpusNoteIDs, 400000, &res);
return (int)hResult;
我什至尝试过下面的代码,但它给了我同样的错误
LPUSHORT* lpusNoteIDs;
USHORT abc[]={1000,9985,10001,10017,10034,9988};
lpusNoteIDs=(LPUSHORT*)abc;
hResult = WFSExecute(hService, WFS_CMD_CIM_CONFIGURE_NOTETYPES,(LPVOID)lpusNoteIDs, 600000, &res);
return (int)hResult;
在 CIM 服务提供商实施规范文档中它说:
lpusNoteIDs :-指向以 NULL 结尾的无符号短裤列表,其中包含钞票的票据 ID
关于必须如何传递值的任何帮助都将非常有用。在此先感谢。