LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

windows like file dialog

Hello all,

is there any possibility to create a real windows like file dialog with
LV6.1, where I can specify the file type via DropDown-ListBox.

I dont mean the custom pattern: Custom Pattern (*.bin, *.txt)

but: Text file *.txt
Binary file *.bin

Thanks in advance,
Marko
0 Kudos
Message 1 of 3
(2,747 Views)
Hi,

This is possible, but unfortunately the API that does this takes a cluster
with string pointers to it.

Easiest way to deal with this is to make a wrapper... I'm working on a work
around, but haven't found the enough time jet.

Regards,

Wiebe.



"Marko Aschoff" wrote in message
news:b4mqun$1vjgl6$1@ID-169652.news.dfncis.de...
> Hello all,
>
> is there any possibility to create a real windows like file dialog with
> LV6.1, where I can specify the file type via DropDown-ListBox.
>
> I dont mean the custom pattern: Custom Pattern (*.bin, *.txt)
>
> but: Text file *.txt
> Binary file *.bin
>
> Thanks in advance,
> Marko
>
>
0 Kudos
Message 2 of 3
(2,747 Views)
Hi,

A work around is this;

Create a heap (HeapCreate)
Allocate memory for all strings (HeapAlloc)
Copy the strings in the heap (istrcpy)
Put the pointers (to the strings, in the heap) in the GetOpenFileNameA
cluster
Read the \00 seperated array of strings
Close the heap (HeapDestroy)

Regards,

Wiebe.


"Wiebe@AIR" wrote in message
news:3e6efaa3$0$148$e4fe514c@dreader8.news.xs4all.nl...
> Hi,
>
> This is possible, but unfortunately the API that does this takes a cluster
> with string pointers to it.
>
> Easiest way to deal with this is to make a wrapper... I'm working on a
work
> around, but haven't found the enough time jet.
>
> Regards,
>
> Wiebe.
>
>
>
> "Marko Aschoff" wrote in message
> news:b4mqun$1vjgl6$1@
ID-169652.news.dfncis.de...
> > Hello all,
> >
> > is there any possibility to create a real windows like file dialog with
> > LV6.1, where I can specify the file type via DropDown-ListBox.
> >
> > I dont mean the custom pattern: Custom Pattern (*.bin, *.txt)
> >
> > but: Text file *.txt
> > Binary file *.bin
> >
> > Thanks in advance,
> > Marko
> >
> >
>
>
0 Kudos
Message 3 of 3
(2,747 Views)