Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

labview built dll acting odd... will not accept passed function parameters.

I have a DLL I have built using LabVIEW 2009 SP1 and for some reason it will not accept values passed to it using VB6. I am using the Standard Calling convention and using the appropriate types for calling the function. uint_32 --> long, int_32 -> long, uint_8 --> byte, etc. Despite that regardless of the value I pass into the function the DLL sees it as "67220" constant when it's uint_16 and when it's int_32  1307956. This only happens for some of the parameters being passed into the function. (I have writtent the values for the controls into txt files for debugging before doing any other kind of processing.) Has anyone experienced similar problems using application builder to build DLLs?

 

Thank you,

 

Mehmet Gerceker

0 Kudos
Message 1 of 2
(3,336 Views)

Mehmet,

   Does the DLL behave in the same way if you are calling it in LabVIEW with the Call Library Function node? It might help to upload a VI calling it and the DLL in a zip file.

Regards from Texas,

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(3,329 Views)