On 12/20/12 09:48, Furqan wrote:
> Thanks it is working perfectly.
> I found one more way.
> How about this:
> system("explorer C:\\test\\folder");

        Since it sounds like you're using windows only, I imagine that's OK.
        Use fl_open_uri() if you want to open a browser across platforms,
        as I think that will work.

> Ian writes:
> Is "system" not a blocking call?

        It should be OK in this case because explorer is a windows app,
        and therefore doesn't block, so system() will return immediately.

        However, with system() you'll get a black DOS window flashing open
        briefly before the explorer window opens if your app was linked
        as a windows app (eg. /SUBSYSTEM:windows)

        You won't get that though if your app is compiled as a console app
        (eg. /SUBSYSTEM:console)

> Albrecht writes:
> fl_open_uri("file:///c:/samples")
> should work. Note the triple '/'..

        Hmm, is the third slash needed?

        I think everything after "file://" is the pathname, so you'd only have
        triple slashes for an absolute unix path, eg. file://<unixpath>, or 
file:///usr/local

        For a windows mapped drive path that has no leading slash,
        I think it'd just be e.g. file://<mappedpath>, or file://c:whatever

        Probably both work, but I think two slashes followed by the path is 
correct.
        http://en.wikipedia.org/wiki/File_URI_scheme

_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to