Showing results for 
Search instead for 
Did you mean: 

Can't open a dll on the PDA when using pointers !


im using an HP Ipaq Pocket PC (Windows CE 4.21) and LV 8.20. I'm opening dlls on the PDA. Everything works fine, but if i open a dll which uses pointers, it doesn't work.

For example, if i have function like this:

int LIBFUNC T4Init(LPCTSTR Port); or

LPCTSTR LIBFUNC T4FindComPort (void);

Normally, the proper LabVIEW datatype for LPCTSTR is C-String. But it doesn't fit.

Any ideas?

0 Kudos
Message 1 of 3
Hello StHommes!

Actually it should work.
There are some specials with dll calls on PDA.

Further you should read this KnowledgeBase.
There you can find information how to pass Null Pointer to a DLL.

Did you choose the right Calling Convention?
Is the dll working in LabVIEW (not LabVIEW PDA)?
Which error message did you get?
Could you post the dll with source code here?

Thanks and regards,


0 Kudos
Message 2 of 3
LPCTSTR on Pocket PC is a wide character string pointer (WCHAR*). If you want to pass C strings using the call library node, you have to change your function prototype to use "char*" instead of LPCTSTR because LabVIEW PDA passes the strings as multibyte strings.
0 Kudos
Message 3 of 3