Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help.... Pin
moliate9-Nov-01 16:21
moliate9-Nov-01 16:21 
GeneralSearching Canvas for drawing diagrams... Pin
Braulio Dez9-Nov-01 3:17
Braulio Dez9-Nov-01 3:17 
GeneralRe: Searching Canvas for drawing diagrams... Pin
9-Nov-01 16:17
suss9-Nov-01 16:17 
GeneralPassing variable from one file to another Pin
Carine9-Nov-01 2:47
Carine9-Nov-01 2:47 
GeneralRe: Passing variable from one file to another Pin
Stan Shannon9-Nov-01 3:00
Stan Shannon9-Nov-01 3:00 
GeneralRe: Passing variable from one file to another Pin
Carine9-Nov-01 3:13
Carine9-Nov-01 3:13 
GeneralRe: Passing variable from one file to another Pin
Stan Shannon9-Nov-01 6:39
Stan Shannon9-Nov-01 6:39 
GeneralRe: Passing variable from one file to another Pin
Stan Shannon9-Nov-01 6:45
Stan Shannon9-Nov-01 6:45 
I'm sorry, I don't think CMainFrame is throwing this error. If you look at the build output it should list the module thats throwning the error. For example, every module, such as your app class, which includes mainframe is also going to need to include the filedoc.h.

So in your app class do this...

#include "filedoc.h"
#include "mainfrm.h"

Or you can put filedoc.h in your mainfrm.h, although that is not the best thing to do. If this is a simple/small app though doing that should cause no problems.

You can also do what is called a "forward declaration"
i.e.

in mainfrm.h...

class CFileDoc;

before the class definition should work just fine for you.


"But, daddy, that was back in the hippie ages..." My twelve year old son - winning the argument.

"Stan, you are an intelligent guy who responds in meaningful ways" Paul Watson 16/10/01
QuestionEject CDROM in W98??? Pin
Jon Hulatt9-Nov-01 1:44
Jon Hulatt9-Nov-01 1:44 
AnswerRe: Eject CDROM in W98??? Pin
Tomasz Sowinski9-Nov-01 1:58
Tomasz Sowinski9-Nov-01 1:58 
AnswerRe: Eject CDROM in W98??? Pin
Carlos Antollini9-Nov-01 2:40
Carlos Antollini9-Nov-01 2:40 
AnswerRe: Check this ;) Pin
Masaaki Onishi9-Nov-01 4:17
Masaaki Onishi9-Nov-01 4:17 
GeneralRe: Check this ;) Pin
Alex Lewandowski9-Nov-01 4:40
Alex Lewandowski9-Nov-01 4:40 
GeneralRe: Ty, but... Pin
Masaaki Onishi9-Nov-01 5:23
Masaaki Onishi9-Nov-01 5:23 
GeneralWhich is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 1:32
Chambers9-Nov-01 1:32 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Tomasz Sowinski9-Nov-01 1:54
Tomasz Sowinski9-Nov-01 1:54 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 2:25
Chambers9-Nov-01 2:25 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Tomasz Sowinski9-Nov-01 2:36
Tomasz Sowinski9-Nov-01 2:36 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 2:39
Chambers9-Nov-01 2:39 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Tomasz Sowinski9-Nov-01 2:43
Tomasz Sowinski9-Nov-01 2:43 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 4:45
Chambers9-Nov-01 4:45 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Christian Graus9-Nov-01 9:59
protectorChristian Graus9-Nov-01 9:59 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Chambers13-Nov-01 1:32
Chambers13-Nov-01 1:32 
Generalabout Registry Pin
Maer7279-Nov-01 1:28
Maer7279-Nov-01 1:28 
GeneralRe: about Registry Pin
Michael P Butler9-Nov-01 1:31
Michael P Butler9-Nov-01 1:31 

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.