Click here to Skip to main content
16,011,805 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: StretchBlt question Pin
Joel Lucsy9-Jan-02 7:52
Joel Lucsy9-Jan-02 7:52 
QuestionDLLs - catching messages? Pin
User 66589-Jan-02 5:01
User 66589-Jan-02 5:01 
AnswerRe: DLLs - catching messages? Pin
Rickard Andersson209-Jan-02 6:35
Rickard Andersson209-Jan-02 6:35 
AnswerRe: DLLs - catching messages? Pin
Joaquín M López Muñoz9-Jan-02 7:02
Joaquín M López Muñoz9-Jan-02 7:02 
GeneralRe: DLLs - catching messages? Pin
User 66589-Jan-02 9:54
User 66589-Jan-02 9:54 
Generalproblem opening files in application Pin
Stew9-Jan-02 4:42
Stew9-Jan-02 4:42 
GeneralRe: problem opening files in application Pin
Michael P Butler9-Jan-02 4:49
Michael P Butler9-Jan-02 4:49 
GeneralRe: problem opening files in application Pin
Stew9-Jan-02 5:14
Stew9-Jan-02 5:14 
Here is where the breakdown starts:

void CDocManager::OnFileOpen()
{
// prompt the user (with all document templates)
CString newName;
if (!DoPromptFileName(newName, AFX_IDS_OPENFILE,
OFN_HIDEREADONLY | OFN_FILEMUSTEXIST, TRUE, NULL))
return; // open cancelled

AfxGetApp()->OpenDocumentFile(newName);
// if returns NULL, the user has already been alerted
}

What's happening is the newName variable is getting a piece of data in it that is in one of my dropdown boxes. It's confusing because it has the data in it immediately after the variable declaration statement is executed. So, right after "CString newName;", the newName variable has some data in it and that seems to be the cause of the problem. I'm not sure how the data is getting there or why it is there right after the variable is declared, but... Any thoughts?
GeneralRe: problem opening files in application Pin
James R. Twine9-Jan-02 5:35
James R. Twine9-Jan-02 5:35 
QuestionMenu not enabled? Pin
Fredrik Skog9-Jan-02 3:42
Fredrik Skog9-Jan-02 3:42 
AnswerRe: Menu not enabled? Pin
Nish Nishant9-Jan-02 3:57
sitebuilderNish Nishant9-Jan-02 3:57 
GeneralRe: Menu not enabled? Pin
Fredrik Skog9-Jan-02 22:50
Fredrik Skog9-Jan-02 22:50 
GeneralRe: Menu not enabled? Pin
James R. Twine10-Jan-02 10:19
James R. Twine10-Jan-02 10:19 
GeneralWindows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Ana Lucia9-Jan-02 3:20
Ana Lucia9-Jan-02 3:20 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Nish Nishant9-Jan-02 6:52
sitebuilderNish Nishant9-Jan-02 6:52 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Ana Lucia9-Jan-02 6:58
Ana Lucia9-Jan-02 6:58 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Nish Nishant9-Jan-02 18:16
sitebuilderNish Nishant9-Jan-02 18:16 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
User 66589-Jan-02 9:59
User 66589-Jan-02 9:59 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Nish Nishant9-Jan-02 18:15
sitebuilderNish Nishant9-Jan-02 18:15 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Shog99-Jan-02 17:19
sitebuilderShog99-Jan-02 17:19 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Ana Lucia9-Jan-02 23:21
Ana Lucia9-Jan-02 23:21 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Michael P Butler10-Jan-02 0:06
Michael P Butler10-Jan-02 0:06 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Ana Lucia10-Jan-02 0:27
Ana Lucia10-Jan-02 0:27 
GeneralRe: Windows XP: GetWindowsDirectory(), GetSystemDirectory(), GetTempPath() Pin
Ana Lucia10-Jan-02 1:37
Ana Lucia10-Jan-02 1:37 
GeneralLDAP and Internet Pin
Neppou9-Jan-02 3:15
Neppou9-Jan-02 3:15 

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.