Click here to Skip to main content
16,007,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem passing an object over several DLL's. Pin
Brian van der Beek16-Jan-03 8:35
Brian van der Beek16-Jan-03 8:35 
GeneralRe: Problem passing an object over several DLL's. Pin
AlexO16-Jan-03 8:57
AlexO16-Jan-03 8:57 
GeneralRe: Problem passing an object over several DLL's. Pin
Brian van der Beek16-Jan-03 20:04
Brian van der Beek16-Jan-03 20:04 
GeneralStrange compile error Pin
ns16-Jan-03 5:51
ns16-Jan-03 5:51 
GeneralRe: Strange compile error Pin
jmkhael16-Jan-03 5:56
jmkhael16-Jan-03 5:56 
GeneralRe: Strange compile error Pin
ns16-Jan-03 6:08
ns16-Jan-03 6:08 
GeneralRe: Strange compile error Pin
jmkhael16-Jan-03 6:14
jmkhael16-Jan-03 6:14 
GeneralRe: Strange compile error Pin
Chris Richardson16-Jan-03 8:03
Chris Richardson16-Jan-03 8:03 
It didn't add the "doc.h" files to the new view because the new view isn't automatically associated with the existing document class. Another thing you must do, to avoid errors, is include the inline call "GetDocument" in the CSearchView header file (you can find the current GetDocument in the BKView header), and also, include the non-inline version of GetDocument in the CSearchView source file (both versions have #ifdef _DEBUG around them).

What will happen if you don't do this and you call GetDocument from CSearchView, you will end up getting a pointer that doesn't point to the correct object, and you won't be able to correctly access the document's data.

Chris Richardson

Programmers find all sorts of ingenious ways to screw ourselves over. - Tim Smith
GeneralRe: Strange compile error Pin
ns16-Jan-03 8:09
ns16-Jan-03 8:09 
GeneralRe: Strange compile error Pin
ns16-Jan-03 9:09
ns16-Jan-03 9:09 
GeneralRe: Strange compile error Pin
Chris Richardson16-Jan-03 9:19
Chris Richardson16-Jan-03 9:19 
GeneralRe: Strange compile error Pin
ns16-Jan-03 9:31
ns16-Jan-03 9:31 
GeneralRe: Strange compile error Pin
Chris Richardson16-Jan-03 9:35
Chris Richardson16-Jan-03 9:35 
GeneralProcess's virtual address Pin
Anonymous16-Jan-03 5:06
Anonymous16-Jan-03 5:06 
GeneralRe: Process's virtual address Pin
AlexO16-Jan-03 5:35
AlexO16-Jan-03 5:35 
GeneralRe: Process's virtual address Pin
Wenrich17-Jan-03 5:03
Wenrich17-Jan-03 5:03 
QuestionHow can i draw in a CDialog Pin
willempipi16-Jan-03 4:32
willempipi16-Jan-03 4:32 
AnswerRe: How can i draw in a CDialog Pin
Alvaro Mendez16-Jan-03 4:38
Alvaro Mendez16-Jan-03 4:38 
GeneralRe: How can i draw in a CDialog Pin
Joaquín M López Muñoz16-Jan-03 6:01
Joaquín M López Muñoz16-Jan-03 6:01 
QuestionHooking Question. Am I Dumb? Pin
RickGavin16-Jan-03 4:17
RickGavin16-Jan-03 4:17 
AnswerRe: Hooking Question. Am I Dumb? Pin
jmkhael16-Jan-03 6:06
jmkhael16-Jan-03 6:06 
GeneralBitmap and dialogbar Pin
MemLeak16-Jan-03 3:09
MemLeak16-Jan-03 3:09 
Generallocation of #include statements Pin
ns16-Jan-03 3:05
ns16-Jan-03 3:05 
GeneralRe: location of #include statements Pin
Maximilien16-Jan-03 3:11
Maximilien16-Jan-03 3:11 
GeneralRe: location of #include statements Pin
ns16-Jan-03 3:15
ns16-Jan-03 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.