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

C / C++ / MFC

 
QuestionCFileDialog Pin
si_6926-Sep-06 23:03
si_6926-Sep-06 23:03 
AnswerRe: CFileDialog Pin
Rajesh R Subramanian26-Sep-06 23:07
professionalRajesh R Subramanian26-Sep-06 23:07 
GeneralRe: CFileDialog Pin
si_6926-Sep-06 23:22
si_6926-Sep-06 23:22 
GeneralRe: CFileDialog Pin
toxcct27-Sep-06 0:26
toxcct27-Sep-06 0:26 
GeneralRe: CFileDialog Pin
Hamid_RT28-Sep-06 9:18
Hamid_RT28-Sep-06 9:18 
AnswerRe: CFileDialog [modified] Pin
toxcct26-Sep-06 23:09
toxcct26-Sep-06 23:09 
AnswerRe: CFileDialog Pin
Rinu_Raj26-Sep-06 23:10
Rinu_Raj26-Sep-06 23:10 
AnswerRe: CFileDialog Pin
David Crow27-Sep-06 3:01
David Crow27-Sep-06 3:01 
si_69 wrote:
CString MyPath "c:\";


This is a syntax error.

si_69 wrote:
if (logPath.GetLength())


What is logPath?

si_69 wrote:
dlg.GetOFN().lpstrInitialDir = MyPath;


Since GetOFN() does not exist with VC++ v6, I used m_ofn instead. Other than that, this code works fine. Do not use strcpy(), as you simply need to assign a pointer to an existing address.


"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


QuestionWARNING Pin
Bravoone_200626-Sep-06 23:01
Bravoone_200626-Sep-06 23:01 
AnswerRe: WARNING Pin
Rajesh R Subramanian26-Sep-06 23:04
professionalRajesh R Subramanian26-Sep-06 23:04 
AnswerRe: WARNING Pin
Rinu_Raj26-Sep-06 23:04
Rinu_Raj26-Sep-06 23:04 
AnswerRe: WARNING Pin
toxcct26-Sep-06 23:07
toxcct26-Sep-06 23:07 
QuestionRe: WARNING Pin
David Crow27-Sep-06 2:49
David Crow27-Sep-06 2:49 
AnswerRe: WARNING Pin
toxcct27-Sep-06 3:01
toxcct27-Sep-06 3:01 
GeneralRe: WARNING Pin
David Crow27-Sep-06 3:06
David Crow27-Sep-06 3:06 
GeneralRe: WARNING Pin
toxcct27-Sep-06 3:10
toxcct27-Sep-06 3:10 
QuestionHow to get KeyPessed event from an editbox Pin
gunner_uk200026-Sep-06 22:55
gunner_uk200026-Sep-06 22:55 
AnswerRe: How to get KeyPessed event from an editbox Pin
Rinu_Raj26-Sep-06 23:01
Rinu_Raj26-Sep-06 23:01 
GeneralRe: How to get KeyPessed event from an editbox Pin
gunner_uk200026-Sep-06 23:19
gunner_uk200026-Sep-06 23:19 
AnswerRe: How to get KeyPessed event from an editbox Pin
Rinu_Raj26-Sep-06 23:34
Rinu_Raj26-Sep-06 23:34 
QuestionHow to exit from aplication ? Pin
Bravoone_200626-Sep-06 22:39
Bravoone_200626-Sep-06 22:39 
AnswerRe: How to exit from aplication ? Pin
toxcct26-Sep-06 22:50
toxcct26-Sep-06 22:50 
AnswerRe: How to exit from aplication ? Pin
Rinu_Raj26-Sep-06 22:50
Rinu_Raj26-Sep-06 22:50 
AnswerRe: How to exit from aplication ? Pin
Rajesh R Subramanian26-Sep-06 22:53
professionalRajesh R Subramanian26-Sep-06 22:53 
GeneralRe: How to exit from aplication ? Pin
toxcct26-Sep-06 22:58
toxcct26-Sep-06 22:58 

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.