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

C / C++ / MFC

 
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 
GeneralRe: CFileDialog / GetOpenFileName - bizarre behaviour Pin
Richard Aston15-Jun-06 2:11
Richard Aston15-Jun-06 2:11 
Thank you for your help. I had to slightly alter the code you sent:

char szFilter[256];<br />
OPENFILENAME m_ofn;<br />
<br />
char file[256];<br />
char* lpFile;<br />
.<br />
.<br />
.<br />
	case ID_FILE_WHITESKYOPEN:<br />
		lpFile = file;<br />
		*lpFile = '\0';<br />
		ZeroMemory(&m_ofn, sizeof(OPENFILENAME));<br />
<br />
		m_ofn.lStructSize		= sizeof(ofn);<br />
		m_ofn.hInstance			= hInst;<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 />
<br />
		GetOpenFileName(&m_ofn);<br />
		break;<br />


But I am afraid it still does the same thing. It seems from the other replies I have received to my posting that this is not unique to me and somehow seems to relate to Adobe Acrobat 7.0.

I have not yet tried removing Acrobat 7.0 from my computer to prove the point.

Thank you again for your interest and help.

RA
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 
AnswerRe: prblm regrading include files Pin
Cedric Moonen14-Jun-06 21:11
Cedric Moonen14-Jun-06 21:11 

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.