Click here to Skip to main content
15,903,201 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: IDispatchImpl problem with shell extension Pin
Heath Stewart15-Oct-02 20:15
protectorHeath Stewart15-Oct-02 20:15 
GeneralRe: IDispatchImpl problem with shell extension Pin
Heath Stewart15-Oct-02 20:27
protectorHeath Stewart15-Oct-02 20:27 
GeneralBuild Problem Pin
Rene De La Garza15-Oct-02 5:27
Rene De La Garza15-Oct-02 5:27 
GeneralRe: Build Problem Pin
Steve S15-Oct-02 6:27
Steve S15-Oct-02 6:27 
GeneralRe: Build Problem Pin
Rene De La Garza15-Oct-02 9:54
Rene De La Garza15-Oct-02 9:54 
GeneralRe: Build Problem Pin
Michael Dunn15-Oct-02 10:35
sitebuilderMichael Dunn15-Oct-02 10:35 
GeneralRe: Build Problem Pin
Rene De La Garza15-Oct-02 10:37
Rene De La Garza15-Oct-02 10:37 
GeneralWTL - CFileDialog Pin
Giles14-Oct-02 23:52
Giles14-Oct-02 23:52 
I'm trying to get a file name. Sound easy enough.

CString strFileName;<br />
	static TCHAR szFilter[] = "Comma Delimited (*.csv)\0*.csv\0All Files(*.*)\0*.*\0\0";<br />
<br />
	GetDlgItemText(IDC_EDIT_LOOKUP, strFileName);<br />
	<br />
	CFileDialog dlg(TRUE, NULL, strFileName, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_FILEMUSTEXIST , szFilter, NULL);<br />
<br />
	if(dlg.DoModal() == IDOK)<br />
	{<br />
		TCHAR szFileName[MAX_PATH + 64];<br />
		dlg.GetFilePath(szFileName, MAX_PATH + 64);<br />
		<br />
		SetDlgItemText(IDC_EDIT_LOOKUP, szFileName);<br />
	}


The problem is when I call GetFilePath, I get an ATLASSERT, because the window handle is 0. I thought this should be straight forward. Everything else is populated okay, but clicking OK seems to kill the window handle before I get the file name. Or should I be calling a different function.
GeneralRe: WTL - CFileDialog Pin
Ed Gadziemski15-Oct-02 4:06
professionalEd Gadziemski15-Oct-02 4:06 
GeneralRe: WTL - CFileDialog Pin
Giles15-Oct-02 6:07
Giles15-Oct-02 6:07 
GeneralRe: WTL - CFileDialog Pin
Ed Gadziemski16-Oct-02 3:35
professionalEd Gadziemski16-Oct-02 3:35 
GeneralRe: WTL - CFileDialog Pin
Giles16-Oct-02 8:00
Giles16-Oct-02 8:00 
GeneralRe: WTL - CFileDialog Pin
Michael Dunn15-Oct-02 19:47
sitebuilderMichael Dunn15-Oct-02 19:47 
GeneralRe: WTL - CFileDialog Pin
Giles16-Oct-02 7:55
Giles16-Oct-02 7:55 
GeneralReleaseMinSize and ReleaseMinDependency Pin
ahsanjamal14-Oct-02 20:23
ahsanjamal14-Oct-02 20:23 
Generalfind of STL Pin
IMiracle14-Oct-02 15:35
IMiracle14-Oct-02 15:35 
GeneralRe: find of STL Pin
Christian Graus14-Oct-02 16:00
protectorChristian Graus14-Oct-02 16:00 
GeneralRe: find of STL Pin
Joaquín M López Muñoz14-Oct-02 21:03
Joaquín M López Muñoz14-Oct-02 21:03 
GeneralCString with ATL/WTL 7.0 Pin
Giles13-Oct-02 6:20
Giles13-Oct-02 6:20 
GeneralRe: CString with ATL/WTL 7.0 Pin
Bjoern Graf13-Oct-02 7:04
Bjoern Graf13-Oct-02 7:04 
GeneralRe: CString with ATL/WTL 7.0 Pin
Giles13-Oct-02 7:13
Giles13-Oct-02 7:13 
GeneralRe: CString with ATL/WTL 7.0 Pin
Rob Caldecott13-Oct-02 22:10
Rob Caldecott13-Oct-02 22:10 
GeneralRe: CString with ATL/WTL 7.0 Pin
Giles14-Oct-02 8:13
Giles14-Oct-02 8:13 
QuestionSo, what is WTL exactly? Pin
Heath Stewart11-Oct-02 8:14
protectorHeath Stewart11-Oct-02 8:14 
AnswerRe: So, what is WTL exactly? Pin
Nick Parker11-Oct-02 8:21
protectorNick Parker11-Oct-02 8:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.