Re: getOpenFileName()

new topic     » goto parent     » topic index » view thread      » older message » newer message

don cole wrote:
>    Now a new problem had popped up.
> }}}
<eucode>
>                           filename = getOpenFileName(
>                           MainWin,
>                           "H:\\",
>                           {"Dialog Flags", {OFN_ALLOWMULTISELECT},
>                             "Rar Files", "*.RAR" ,
>                             "All Files", "*.*" } )
> </eucode>
{{{

> It open in H: which is what I want but
> now all files show up in the openDialog box not just the .rar files?
> With my old code:
> }}}
<eucode>
> filename=getOpenFileName(0,"",   {"Dialog Flags", {OFN_ALLOWMULTISELECT},
>                             "Rar Files", "*.RAR" ,
>                             "All Files", "*.*" } )
> </eucode>
{{{

> 
> only the .rar files showed up.
Try this:
filename = getOpenFileName(
                          MainWin,
                          "H:\\.",
                          {"Dialog Flags", {OFN_ALLOWMULTISELECT},
                            "Rar Files", "*.RAR" ,
                            "All Files", "*.*" } )

That extra little dot works a charm here (win98), dunno why tho.

Regards,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu