LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call library

Hi friends,

I'm trying to use call library function to get Windows open dialog box, because after having the 5.0 version of the multiple file selection dialog at NI site, i'm not very happy with it.

The problem is that this library call seems to be too complicated to me, and i'm a bit lost.

I know i must call comdlg32.dll and use GetOpenFileNameA function. This function accepts a OPENFILENAME Long made of:
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long

lpstrInitialDir As String
lpstrTitle As String
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String

How am i supposed to do that in LabVIEW? The only thing i have achieved is a Dr. Watson dialog, and that is not what i wanted!

Thanks in advance
0 Kudos
Message 1 of 2
(2,847 Views)
Gorka,

Sounds to me like you need to write a VI with User Interface to handle this instead. The added benefit of doing this is that you have something that is platform independent. I know that doesn't sound like such a great thing these days, but soon, I expect that platform independence will become very important. Also, creating your solution in LabVIEW without WIN API, gives you more programming experience.

Good luck, and let us know what you do. I would be very intereseted in a multiple file selection control in LabVIEW.
0 Kudos
Message 2 of 2
(2,847 Views)