Click here to Skip to main content
15,910,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: not clear why & is used Pin
Chris Losinger31-Jul-02 6:45
professionalChris Losinger31-Jul-02 6:45 
Generalaah! Thats what I was looking for! Pin
ns31-Jul-02 6:50
ns31-Jul-02 6:50 
GeneralRe: not clear why & is used Pin
Ravi Bhavnani31-Jul-02 6:54
professionalRavi Bhavnani31-Jul-02 6:54 
GeneralRe: not clear why & is used Pin
PJ Arends31-Jul-02 8:08
professionalPJ Arends31-Jul-02 8:08 
GeneralShared resources management Pin
Antony B.31-Jul-02 5:40
sussAntony B.31-Jul-02 5:40 
GeneralStill a little lost with GetActiveDocument() Pin
NickOne31-Jul-02 5:22
NickOne31-Jul-02 5:22 
GeneralRe: Still a little lost with GetActiveDocument() Pin
JennyP31-Jul-02 6:23
JennyP31-Jul-02 6:23 
GeneralRe: Still a little lost with GetActiveDocument() Pin
NickOne31-Jul-02 7:03
NickOne31-Jul-02 7:03 
Ok so I tired it like this:

CMyDoc *pDoc = (CMyDoc *)((CMainFrame *)AfxGetApp()->m_pMainWnd)->GetActiveFrame()->GetActiveDocument();

if(pDoc)
{

pDoc->m_Filename;

}

And this doesn't work.

I put
if(pDOc == NULL)
{
AfxMessageBox("pDoc is NULL");
}

and this worked, so pDoc is still Null and not the String in m_Filename

So either the string in m_Filename gets erased somewhere and set back to NULL, or I am doing something still wrong.

Any ideas?

NickOne
GeneralRe: Still a little lost with GetActiveDocument() Pin
NickOne31-Jul-02 8:06
NickOne31-Jul-02 8:06 
Generalmultipart file download... Pin
behrang7931-Jul-02 5:02
behrang7931-Jul-02 5:02 
GeneralC1010: unexpected end of file while looking for precompiled header directive Pin
Raskolnikov31-Jul-02 4:59
Raskolnikov31-Jul-02 4:59 
GeneralRe: C1010: unexpected end of file while looking for precompiled header directive Pin
RichB31-Jul-02 5:05
RichB31-Jul-02 5:05 
GeneralI hate Microsoft Pin
Raskolnikov31-Jul-02 5:08
Raskolnikov31-Jul-02 5:08 
GeneralRe: I hate Microsoft Pin
Jim Crafton31-Jul-02 6:25
Jim Crafton31-Jul-02 6:25 
GeneralRe: I hate Microsoft Pin
Raskolnikov31-Jul-02 15:58
Raskolnikov31-Jul-02 15:58 
GeneralRe: I hate Microsoft Pin
Christian Graus31-Jul-02 17:02
protectorChristian Graus31-Jul-02 17:02 
GeneralMy bad I though Error lookup tool was for compiler errors.. Pin
Raskolnikov1-Aug-02 11:33
Raskolnikov1-Aug-02 11:33 
GeneralSplash screen Pin
hongheo7631-Jul-02 4:31
hongheo7631-Jul-02 4:31 
GeneralRe: Splash screen Pin
Nish Nishant31-Jul-02 4:43
sitebuilderNish Nishant31-Jul-02 4:43 
GeneralRe: Splash screen Pin
Tomasz Sowinski31-Jul-02 4:48
Tomasz Sowinski31-Jul-02 4:48 
GeneralFtpGetFile Issue Pin
RichB31-Jul-02 4:29
RichB31-Jul-02 4:29 
QuestionHow to read the unicode string from a file? Pin
Neha31-Jul-02 3:34
Neha31-Jul-02 3:34 
GeneralModal dialogs fon't show after main dialog shuts down Pin
Tre K Renegade31-Jul-02 3:31
Tre K Renegade31-Jul-02 3:31 
GeneralRe: Modal dialogs fon't show after main dialog shuts down Pin
Nish Nishant31-Jul-02 4:03
sitebuilderNish Nishant31-Jul-02 4:03 
GeneralRe: Modal dialogs fon't show after main dialog shuts down Pin
Tre K Renegade31-Jul-02 4:34
Tre K Renegade31-Jul-02 4:34 

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.