05-29-2006 01:47 AM
05-29-2006 01:03 PM
Your Call Library Node is configured incorrectly for the DLL function you are trying to call. This is a very tricky subject. When calling a DLL function, you have to specify the Labview equivalent type to the DLL type. Such as: DLL DWORD is Labview U32, WORD is U16, HANDLE is U32, BYTE is U8. Search NI website for DLL and you will see whitepapers on this subject and how the C types translate to Labview types. Some C types do not translate directly to Labview types, and another approach must be taken (wrapper DLL or CIN).
Another thing to look at is the Calling Convention. Try both the Standard (WINAPI) and the C convention. One of these will work and the other will cause crashes. It depends on how the DLL was written and I have yet to figure out the differences because I don't write DLLs, hence I don't know much about them except how to call the functions in Labview and other languages.
05-29-2006 04:02 PM
:):):)
Glad to see you are back Tbob...
05-29-2006 07:54 PM
thanks tbob
I really appreciate your help
05-29-2006 08:54 PM
HI tbob
Can you give me a link of the LabView dll white paper (about the parameter difference between LabView and dll), I search “dll white paper
” there is nothing subject , search“dll” there is too many subject .
05-30-2006
11:22 AM
- last edited on
11-24-2025
11:15 AM
by
Content Cleaner
Here is a good start: http://zone.ni.com/devzone/conceptd.nsf/webmain/5CF9A9FFD774028586256869005FF2ED
05-30-2006 07:48 PM
thank your tbob
05-31-2006 04:26 AM
by the way how can i make a dll to a wraper dll
someone say that make a wraper dll can avoid the labview crash.
05-31-2006 11:48 AM
05-31-2006 07:37 PM
sorry to posts many threads ,
thank you very much and I will try it.