Click here to Skip to main content
15,906,081 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCFileDialog / GetOpenFileName - bizarre behaviour Pin
Richard Aston14-Jun-06 22:36
Richard Aston14-Jun-06 22:36 
AnswerRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Laxman Auti14-Jun-06 22:47
Laxman Auti14-Jun-06 22:47 
GeneralRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Richard Aston15-Jun-06 0:27
Richard Aston15-Jun-06 0:27 
AnswerRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Hamid_RT14-Jun-06 22:54
Hamid_RT14-Jun-06 22:54 
GeneralRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Richard Aston15-Jun-06 0:20
Richard Aston15-Jun-06 0:20 
GeneralRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Justin Tay15-Jun-06 0:56
Justin Tay15-Jun-06 0:56 
GeneralRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Richard Aston15-Jun-06 1:10
Richard Aston15-Jun-06 1:10 
GeneralRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Hamid_RT15-Jun-06 1:02
Hamid_RT15-Jun-06 1:02 
im not sure your problem is this but can you run this code ,please and send me that it work or you get previous error
<br />
	OPENFILENAME m_ofn;<br />
	static char		lpFile[260];<br />
	LPCSTR szFilter="";<br />
	memset(&m_ofn, 0, sizeof(m_ofn));<br />
	m_ofn.lStructSize       = sizeof(OPENFILENAME);<br />
	m_ofn.hwndOwner         = m_hWnd;<br />
	m_ofn.hInstance         = AfxGetApp()->m_hInstance;<br />
	m_ofn.lpstrFilter		= szFilter;<br />
    m_ofn.lpstrCustomFilter = NULL;<br />
    m_ofn.nMaxCustFilter    = 0;<br />
    m_ofn.nFilterIndex      = 0;<br />
    m_ofn.lpstrFile         = lpFile;<br />
<br />
    m_ofn.nMaxFile          = sizeof(lpFile);<br />
    m_ofn.lpstrFileTitle    = 0;<br />
    m_ofn.nMaxFileTitle     = 0;<br />
    m_ofn.lpstrInitialDir   = NULL;<br />
<br />
    m_ofn.lpstrTitle        = "Open a File";<br />
    m_ofn.nFileOffset       = 0;<br />
    m_ofn.nFileExtension    = 0;<br />
    m_ofn.lpstrDefExt       = NULL;<br />
    m_ofn.lCustData         = 0;<br />
    m_ofn.lpfnHook          = NULL;<br />
    m_ofn.lpTemplateName    = NULL;<br />
<br />
  m_ofn.Flags             = OFN_EXPLORER|OFN_HIDEREADONLY;<br />
    GetOpenFileName(&m_ofn);<br />



whitesky


GeneralRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Richard Aston15-Jun-06 2:11
Richard Aston15-Jun-06 2:11 
GeneralRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Blake Miller15-Jun-06 4:57
Blake Miller15-Jun-06 4:57 
QuestionAnti Aliasing vs Clear Type Pin
Sarath C14-Jun-06 22:19
Sarath C14-Jun-06 22:19 
QuestionIs there any source code for displaying a web image into window application????? [modified] Pin
mimimimilaw14-Jun-06 22:00
mimimimilaw14-Jun-06 22:00 
AnswerRe: Is there any source code for displaying a web image into window application????? Pin
Viorel.14-Jun-06 22:09
Viorel.14-Jun-06 22:09 
GeneralRe: Is there any source code for displaying a web image into window application????? Pin
mimimimilaw14-Jun-06 22:14
mimimimilaw14-Jun-06 22:14 
AnswerRe: Is there any source code for displaying a web image into window application????? Pin
Laxman Auti14-Jun-06 22:17
Laxman Auti14-Jun-06 22:17 
GeneralRe: Is there any source code for displaying a web image into window application????? Pin
mimimimilaw14-Jun-06 22:25
mimimimilaw14-Jun-06 22:25 
AnswerRe: Is there any source code for displaying a web image into window application????? Pin
Hamid_RT14-Jun-06 22:56
Hamid_RT14-Jun-06 22:56 
GeneralRe: Is there any source code for displaying a web image into window application????? Pin
mimimimilaw14-Jun-06 23:09
mimimimilaw14-Jun-06 23:09 
GeneralRe: Is there any source code for displaying a web image into window application????? Pin
Hamid_RT14-Jun-06 23:15
Hamid_RT14-Jun-06 23:15 
Question[MFC] Control to view and edit an array Pin
Tnarol14-Jun-06 21:58
Tnarol14-Jun-06 21:58 
AnswerRe: [MFC] Control to view and edit an array Pin
Naveen14-Jun-06 22:20
Naveen14-Jun-06 22:20 
Questionlist the items in combobox Pin
thathvamsi14-Jun-06 21:33
thathvamsi14-Jun-06 21:33 
AnswerRe: list the items in combobox Pin
Viorel.14-Jun-06 21:58
Viorel.14-Jun-06 21:58 
AnswerRe: list the items in combobox Pin
_AnsHUMAN_ 14-Jun-06 21:59
_AnsHUMAN_ 14-Jun-06 21:59 
Questionprblm regrading include files Pin
Ramu.e14-Jun-06 21:03
Ramu.e14-Jun-06 21:03 

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.