Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error LNK2019: unresolved external symbol question Pin
monsieur_jj10-Aug-08 18:33
monsieur_jj10-Aug-08 18:33 
GeneralRe: error LNK2019: unresolved external symbol question Pin
monsieur_jj10-Aug-08 19:11
monsieur_jj10-Aug-08 19:11 
Questiontwo basic questions about message pump in STA Pin
George_George10-Aug-08 15:26
George_George10-Aug-08 15:26 
Questionfile filter by shell extension Pin
greenfish77710-Aug-08 13:58
greenfish77710-Aug-08 13:58 
QuestionHow can I post a user message from a Dialog box to the CDocument class? Pin
Electronic7510-Aug-08 6:20
Electronic7510-Aug-08 6:20 
AnswerRe: How can I post a user message from a Dialog box to the CDocument class? Pin
Bram van Kampen10-Aug-08 9:18
Bram van Kampen10-Aug-08 9:18 
GeneralRe: How can I post a user message from a Dialog box to the CDocument class? Pin
Electronic7510-Aug-08 17:10
Electronic7510-Aug-08 17:10 
GeneralRe: How can I post a user message from a Dialog box to the CDocument class? Pin
Bram van Kampen11-Aug-08 15:17
Bram van Kampen11-Aug-08 15:17 
Electronic75 wrote:
Hi, I tried but I couldn't because it requires that I have a member variable of dialog box in CDocument class, so I have to include CDialog header file in CDocument header file in that case I also need to define a member variable that points to CDocument so I also need to include CDocument header file in CDialog header file and this causes the compiler to cry loudly and gives hundreds of errors I even tried to prevent compiler form reading a header file recursively. like this:


Well, read up on your cpp. Ofcource the compiler (and largely the Framework) will object if you start adding items willy nilly to CDocument. After you eventually convince the compiler that way, the Linker will complain more loudly! (and should do so!)

The crucial issue is that you have derrived a class CMyDocument, from CDocument. Again, Read up on CPP, Place your Dlg Header in 'MyDocument.h"
and you can call it from CMyDocument (but NOT from CDocument except by virtual function.)

Regards, Smile | :)

Bram van Kampen

GeneralRe: How can I post a user message from a Dialog box to the CDocument class? Pin
Electronic7511-Aug-08 17:59
Electronic7511-Aug-08 17:59 
AnswerRe: How can I post a user message from a Dialog box to the CDocument class? Pin
Randor 10-Aug-08 17:31
professional Randor 10-Aug-08 17:31 
GeneralRe: How can I post a user message from a Dialog box to the CDocument class? Pin
Electronic7510-Aug-08 20:11
Electronic7510-Aug-08 20:11 
QuestionRPC linking error in VC6.0 Pin
sunny_vc9-Aug-08 21:16
sunny_vc9-Aug-08 21:16 
AnswerRe: RPC linking error in VC6.0 Pin
Jijo.Raj9-Aug-08 21:40
Jijo.Raj9-Aug-08 21:40 
GeneralRe: RPC linking error in VC6.0 Pin
sunny_vc10-Aug-08 16:59
sunny_vc10-Aug-08 16:59 
Questionhow to make mfc opengl installer application Pin
yoel good9-Aug-08 18:21
yoel good9-Aug-08 18:21 
QuestionSpawning a new frame within a CDialog's OnBnClickedOk() has the effect of making the new frame immediately go behind the main frame Pin
Sternocera9-Aug-08 14:12
Sternocera9-Aug-08 14:12 
QuestionRegOpenKey error i cant figure out Pin
locoone9-Aug-08 12:56
locoone9-Aug-08 12:56 
AnswerRe: RegOpenKey error i cant figure out Pin
David Crow9-Aug-08 16:23
David Crow9-Aug-08 16:23 
GeneralRe: RegOpenKey error i cant figure out [modified] Pin
locoone9-Aug-08 17:05
locoone9-Aug-08 17:05 
QuestionRe: RegOpenKey error i cant figure out Pin
Mark Salsbery10-Aug-08 8:03
Mark Salsbery10-Aug-08 8:03 
AnswerRe: RegOpenKey error i cant figure out Pin
Rob Manderson10-Aug-08 8:26
protectorRob Manderson10-Aug-08 8:26 
QuestionHaving problems with Templates Pin
BobInNJ9-Aug-08 4:05
BobInNJ9-Aug-08 4:05 
AnswerRe: Having problems with Templates Pin
Graham Shanks9-Aug-08 11:28
Graham Shanks9-Aug-08 11:28 
GeneralRe: Having problems with Templates Pin
BobInNJ10-Aug-08 5:49
BobInNJ10-Aug-08 5:49 
QuestionWhat are the limits of the drawing area in GDI? Pin
g_sandipan9-Aug-08 3:57
g_sandipan9-Aug-08 3:57 

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.