02-13-2017 09:08 AM
Hi there, I try to call function with below function, somehow it doesn't work well.
I enclose vi in attachment, please check if any wrong when I create it, thanks in advance.
Function source:
=====================
MXEIO_Connect(
char * szIP,
WORD wPort,
DWORD dwTimeOut,
int * hConnection );
======================
Did I put wrong format in handle "hConnection"? I set it as a format " point" , return value, however, is still wrong .
02-13-2017 09:36 AM
> Did I put wrong format in handle "hConnection"? I set it as a format " point" ,
> return value, however, is still wrong .
Try "Signed Pointer-sized Integer" for data type.
02-13-2017 11:36 PM
Thank you for your advice, I follow the change you advice and it doesn't work
the original function like below
========================================================
MXEIO_E1K_tpfConnect(char *, WORD, DWORD, int *, char *);
=======================================================
02-14-2017 12:22 AM
Looks like you forgot the last parameter: char *
02-14-2017 01:17 AM
Because vi wrap a shell around the funtion with char.
I update VI according to original funtion, pls help to check, thanks
02-15-2017 01:04 PM
> Because vi wrap a shell around the funtion with char.
What?
Is the last parameter (password) an input ?
An empty password ?
You didn't provide enough info to determind if the calling convention should be stdcall or C. Can you post the header file?