This is done by overriding the nsIHelperAppLauncherDialog interface. Please take a look at embedding/tests/mfcembed/components/Helper*.cpp/.h to see how it's being done.
Also please take a look at CMfcEmbedApp::OverrideComponents() in mfcembed/MfcEmbed.cpp to see how to replace Mozilla's helper app launcher dialog with your own.
If you do not want the Open/Save dialog to show up modify the CHelperAppLauncherDialog::Show() method in mfcembed/components/HelperAppDlg.cpp to do a LaunchWithApplication() directly.
Also, please take a look at some comments in the beginning of mfcembed/components/HelperAppDlg.cpp to get a feel for this whole process.
CORONA,FATIMA , HP-Boise,ex1 wrote:
[EMAIL PROTECTED]">I am uploading an HTML page on my winEmbed browser which contains a
button which launches an executable file (.exe).
When the button is clicked on, the .exe file is not launched, instead, a
memory error messege appears. something like this:
<<...OLE_Obj...>>
and when ran on regular mozilla browser, it asks me to save it first, but
when I do.. it doesn't even launch the executable.
Is there a way to prevent mozilla from asking you to save the file, and
just launch the .exe ? or In my sample, am I not taking something in
consideration?
Thanks,
Fatima
