Click here to Skip to main content
15,922,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC CfileDialog Pin
led mike21-Jun-06 7:33
led mike21-Jun-06 7:33 
GeneralRe: MFC CfileDialog Pin
Manjunath S21-Jun-06 7:42
Manjunath S21-Jun-06 7:42 
QuestionRe: MFC CfileDialog Pin
David Crow21-Jun-06 7:37
David Crow21-Jun-06 7:37 
QuestionRe: MFC CfileDialog Pin
Manjunath S21-Jun-06 7:47
Manjunath S21-Jun-06 7:47 
AnswerRe: MFC CfileDialog Pin
Justin Tay21-Jun-06 7:53
Justin Tay21-Jun-06 7:53 
AnswerRe: MFC CfileDialog Pin
David Crow21-Jun-06 7:58
David Crow21-Jun-06 7:58 
AnswerRe: MFC CfileDialog Pin
Zac Howland21-Jun-06 8:52
Zac Howland21-Jun-06 8:52 
QuestionRe: MFC CfileDialog Pin
Manjunath S21-Jun-06 19:48
Manjunath S21-Jun-06 19:48 
Hi,

1.I deleted sleep
2.I need to pass filepath2 as a char* to a function in DLL.
Now the Modified code looks like this ...

void Upload::OnSelect()
{


CFileDialog upload(FALSE);

if(upload.DoModal() == IDOK) {
l_strFileName2 = upload.GetPathName();
MessageBox(l_strFileName2);
/* where filepath3 is a global char* variable */
filepath3 = (char *) (LPCTSTR) l_strFileName2;
m_start.ShowWindow(SW_SHOW);
m_select.ShowWindow(SW_HIDE);
m_edt.SetWindowText(l_strFileName2);
}
}


The above code problem is CfileDialog and whole application closes automatically (once in 18-20 times of Onselect is clicked) .The application closes when i try to select filename in filedialog using keyboard charater(i.e filename first character) )..

Thanking You






Manjunath S
GESL
Bangalore
AnswerRe: MFC CfileDialog Pin
Zac Howland22-Jun-06 3:35
Zac Howland22-Jun-06 3:35 
QuestionRe: MFC CfileDialog Pin
Hamid_RT21-Jun-06 19:22
Hamid_RT21-Jun-06 19:22 
QuestionSetting language used for menus/dialogs (UI language) Pin
fourierman21-Jun-06 6:33
fourierman21-Jun-06 6:33 
QuestionSDI MFC APP -- Change title Pin
tingu21-Jun-06 6:00
tingu21-Jun-06 6:00 
AnswerRe: SDI MFC APP -- Change title Pin
led mike21-Jun-06 6:34
led mike21-Jun-06 6:34 
AnswerRe: SDI MFC APP -- Change title Pin
James R. Twine21-Jun-06 6:38
James R. Twine21-Jun-06 6:38 
QuestionHow to select tabs from the menu bar? Pin
Ashutosh Bagaria21-Jun-06 5:53
Ashutosh Bagaria21-Jun-06 5:53 
QuestionCTypedPtrArray and CTypedPtrMap [modified] Pin
bob1697221-Jun-06 5:34
bob1697221-Jun-06 5:34 
AnswerRe: CTypedPtrArray and CTypedPtrMap Pin
bob1697221-Jun-06 7:17
bob1697221-Jun-06 7:17 
QuestionList of network interface Pin
fabiotriolo21-Jun-06 5:30
fabiotriolo21-Jun-06 5:30 
AnswerRe: List of network interface Pin
lordxx21-Jun-06 5:37
lordxx21-Jun-06 5:37 
AnswerRe: List of network interface Pin
David Crow21-Jun-06 5:46
David Crow21-Jun-06 5:46 
Questionerror LNK2001 & error LNK1120 with GUIDs Pin
kitty521-Jun-06 4:56
kitty521-Jun-06 4:56 
AnswerRe: error LNK2001 & error LNK1120 with GUIDs [modified] Pin
Viorel.21-Jun-06 5:06
Viorel.21-Jun-06 5:06 
QuestionPorting code to PPC WinCE Pin
Mike Doner21-Jun-06 4:50
Mike Doner21-Jun-06 4:50 
QuestionDebug vs. Release Build Pin
Bob X21-Jun-06 4:34
Bob X21-Jun-06 4:34 
AnswerRe: Debug vs. Release Build Pin
kitty521-Jun-06 4:43
kitty521-Jun-06 4:43 

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.