News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

IFileDialog

Started by Grincheux, March 28, 2012, 06:33:06 AM

Previous topic - Next topic

Grincheux

I have Windows 7 on my pc.
I read that the GetOpenFileName was repaced by the IFileDialog interface.

How can I use it ?
I need some example.

Thanks
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

donkey

GetOpenFilename is still available and will not be deprecated since older software uses it exclusively. For IFileDialog you generally do not call it directly, it is implemented by IFileOpenDialog and IFileSaveDialog which are the two interfaces you would normally call. There is also an event sink that allows you to process events during the lifespan of the dialog, IFileDialogEvents. You can customize the file dialog using IFileDialogCustomize.

This is not a lightweight COM interface, it requires setting up a static COM server to handle events so it's not really something for anyone without COM experience unless you want just the bare bones implementation.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

Grincheux

Thanks for the answer, I asked about this because I have problems using GetOpenfilename with ml64 (invalid structure size !).
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

donkey

In x64 the structure should be 152 bytes.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

Grincheux

I will check the structure alignment.

Thanks.
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz