LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Pass HANDLE in DLL


I want to know how to pass HANDLE type parameter in DLL when I build dll using the "Call Library Function". I'm using LabVIEW5.1 and VC++ with win95.
In VC++, I will get HANDLE type varaible and pass it to a LV vi. But, I cannot find the HANDLE type on the "Call Library Function" pull_down list.
0 Kudos
Message 1 of 3
(2,783 Views)
You can find a complete discussion about calling Windows API inside the 'Using External Code in LabVIEW' manual, which you can find in the \manuals directory (lvexcode.pdf).
In 'Shared Libraries (DLL)' chapter, example 3, is explained how to make this call using a U32 variable for the hWnd parameter.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,783 Views)
I don't know if this will help (just played around with the call library function a little...don't know much about it because my dll calls are simple), but if you have an array type handle, select type as array and for array format, you can choose array handle. Or if it is a string, you can choose the type to be string and for string format you can choose string handle.

If I am totally off base, just ignore me!
0 Kudos
Message 3 of 3
(2,783 Views)