[英]CEN/XFS - Invalid Pointer
i implementing new Service Provider with CEN-XFS, but it's returning error, (-26), equal this "WFS_ERR_INVALID_POINTER". 我用CEN-XFS实现新的服务提供者,但返回错误(-26),等于此“ WFS_ERR_INVALID_POINTER”。
I use java, more precisely JNA to communicate with the DLL (msxfs.dll). 我使用Java,更确切地说是JNA与DLL(msxfs.dll)进行通信。
I Create service provider with REGEDIT on [HKEY_USERS.DEFAULT\\XFS\\LOGICAL_SERVICES\\MyCurrencyDispenser] with values: 我在[HKEY_USERS.DEFAULT \\ XFS \\ LOGICAL_SERVICES \\ MyCurrencyDispenser]上使用REGEDIT创建服务提供者,其值如下:
My interface - WFSOpen (its part to LibraryMethods). 我的界面-WFSOpen(属于LibraryMethods)。
public short WFSOpen(String lpszLogicalName, int hApp, String lpszAppID,
int dwTraceLevel, int dwTimeOut, int dwSrvcVersionsRequired,
String lpSrvcVersion, String lpSPIVersion, String lpRequestID);
WFSOpen execute after WFSStartUp.. WFSOpenUp之后执行WFSOpen。
hResult = libMethods.WFSOpen("MyCurrencyDispenser", 0, "CDM", 0x0000001F, 0,
dwVersionsRequired, lpWFSVersionOld, lpWFSVersion, null);
WFSOpen native: WFSOpen本机:
HRESULT extern WINAPI WFSOpen(LPSTR lpszLogicalName, HAPP hApp, LPSTR
lpszAppID, DWORD dwTraceLevel, DWORD dwTimeOut, DWORD
dwSrvcVersionsRequired, LPWFSVERSION lpSrvcVersion, LPWFSVERSION
lpSPIVersion, LPHSERVICE lphService);
I need help, thank's.. 我需要帮助,谢谢。
The below error tells you, your pointer
points to wrong memory which WFSOPEN()
function needed. 以下错误告诉您,您的pointer
指向错误的内存,该内存需要WFSOPEN()
函数。
"WFS_ERR_INVALID_POINTER"
one of your struct
or HAPP
parameter need to be pointed correctly. 您的struct
或HAPP
参数之一必须正确指向。
notice: HAPP is void* not integer type.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.