Skip to search.
wtl · WTL support list

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
CShellFileOpenDialog/CShellFileSaveDialog hang up my App   Message List  
Reply Message #16583 of 16586 |
Re: [wtl] Re: CShellFileOpenDialog/CShellFileSaveDialog hang up my App

Thank for the idea, I don't think it's necessary. Nevertheless I've tried
both cases.
Anyway this code works with S_OK :
CComPtr<IFileSaveDialog> pfd = fd.GetPtr();

CComQIPtr<IFileDialogCustomize> pfdc = pfd;


(btw, customization is the reason for me to use subj dialogs)

-km

----- Original Message -----
From: Timo Kunze
To: wtl@yahoogroups.com
Sent: Saturday, February 18, 2012 12:39 AM
Subject: [wtl] Re: CShellFileOpenDialog/CShellFileSaveDialog hang up my
App



Hi,

could it be that all that is missing is a call to CoInitialize?

Regards
Timo
--
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
"Demokratie ist per Definition unsicher. Ihr Schutz entsteht aus der
Überzeugung, dass die demokratischen Kräfte überwiegen und sich – auf
demokratischem Wege – durchsetzen."





[Non-text portions of this message have been removed]




Sat Feb 18, 2012 2:14 pm

const_at_ixbt
Offline Offline
Send Email Send Email

Message #16583 of 16586 |
Expand Messages Author Sort by Date

Hello, I wonder but I cannot find the reason. The code is: CShellFileSaveDialog fd; if (fd.DoModal(GetParent()) == IDOK) { CStringW s; fd.GetFilePath(s); } ...
Konstantin Mironovich
const_at_ixbt Offline Send Email
Feb 15, 2012
7:37 pm

probably something wrong with my App mainloop. fd.DoModal(::GetDesktopWindow()) works fine. -km ... From: "Konstantin Mironovich" <const@...> To:...
Konstantin Mironovich
const_at_ixbt Offline Send Email
Feb 17, 2012
12:49 am

What is GetParent() returning in your code? Cheers, Nenad 2012/2/16 Konstantin Mironovich <const@...> ... [Non-text portions of this message have been...
Nenad Stefanović
nenad_stefan... Offline Send Email
Feb 17, 2012
1:00 am

guess the parent is valid. furthermore CFileDialog works pretty good in this App. also both work in another WTL-based program. I suspect these Vista COM-based...
Konstantin Mironovich
const_at_ixbt Offline Send Email
Feb 17, 2012
6:45 am

Parent needs to be a top level window, not just valid. Or, it could be Vista - have you tried it on Win7? Cheers, Nenad ... [Non-text portions of this message...
Nenad Stefanović
nenad_stefan... Offline Send Email
Feb 17, 2012
8:24 am

the default parent is ::GetActiveWindow() for both CFileDialog::DoModal() and CShellFileSaveDialog::DoModal() and only the first works in my case. Win7 will be...
Konstantin Mironovich
const_at_ixbt Offline Send Email
Feb 17, 2012
5:49 pm

Hi, could it be that all that is missing is a call to CoInitialize? Regards Timo -- www.TimoSoft-Software.de - Unicode controls for VB6 "Those who sacrifice...
Timo Kunze
timosoft2001 Offline Send Email
Feb 17, 2012
8:39 pm

Thank for the idea, I don't think it's necessary. Nevertheless I've tried both cases. Anyway this code works with S_OK : CComPtr<IFileSaveDialog> pfd =...
Konstantin Mironovich
const_at_ixbt Offline Send Email
Feb 18, 2012
2:14 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help