Click here to Skip to main content
15,912,493 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registry Corruption Pin
Michael Dunn27-Aug-04 21:01
sitebuilderMichael Dunn27-Aug-04 21:01 
QuestionNeed to insert text? Pin
Larsson27-Aug-04 9:04
Larsson27-Aug-04 9:04 
AnswerRe: Need to insert text? Pin
David Crow27-Aug-04 9:33
David Crow27-Aug-04 9:33 
GeneralRe: Need to insert text? Pin
Larsson27-Aug-04 10:03
Larsson27-Aug-04 10:03 
GeneralRe: Need to insert text? Pin
David Crow27-Aug-04 10:38
David Crow27-Aug-04 10:38 
QuestionInsert text to file? Pin
Larsson27-Aug-04 8:44
Larsson27-Aug-04 8:44 
AnswerRe: Insert text to file? Pin
darkbyte27-Aug-04 13:58
darkbyte27-Aug-04 13:58 
GeneralDoc/View and permanent/temporary handle maps Pin
herbert_chow27-Aug-04 8:24
herbert_chow27-Aug-04 8:24 
Hi,

I am working on a MDI application. I derived my own view an document class and called AddDocTemplate with these classes in my CWinApp class. The views and document seem to show up when I go file/new.
But whenever I modify the document and call pDoc->UpdateAllViews(NULL) to make my views reflect the changes, I get an ASSERT failure.

void CWnd::AssertValid() const
{
...............
// should also be in the permanent or temporary handle map
CHandleMap* pMap = afxMapHWND();
ASSERT(pMap != NULL);
...............
//more code
}


Does anyone know what a permanent or temporary handle map is and how I might add one? It doesn't seem like this is in the MSDN documents as there is no reference to afxMapHWND().

Thanks in advance.
GeneralRe: Doc/View and permanent/temporary handle maps Pin
Neville Franks27-Aug-04 11:34
Neville Franks27-Aug-04 11:34 
Generalextern "C" in VisualStudio Pin
Marcello27-Aug-04 5:58
Marcello27-Aug-04 5:58 
GeneralRe: extern "C" in VisualStudio Pin
darkbyte27-Aug-04 13:38
darkbyte27-Aug-04 13:38 
GeneralRe: extern "C" in VisualStudio Pin
Marcello27-Aug-04 14:32
Marcello27-Aug-04 14:32 
GeneralRe: extern "C" in VisualStudio Pin
darkbyte27-Aug-04 15:49
darkbyte27-Aug-04 15:49 
GeneralRe: extern "C" in VisualStudio Pin
Marcello28-Aug-04 18:59
Marcello28-Aug-04 18:59 
GeneralRe: extern "C" in VisualStudio Pin
darkbyte27-Aug-04 16:03
darkbyte27-Aug-04 16:03 
GeneralRe: extern "C" in VisualStudio Pin
Marcello28-Aug-04 12:32
Marcello28-Aug-04 12:32 
GeneralRe: extern "C" in VisualStudio Pin
Marcello28-Aug-04 19:00
Marcello28-Aug-04 19:00 
GeneralRe: extern "C" in VisualStudio Pin
Marcello28-Aug-04 19:07
Marcello28-Aug-04 19:07 
Generalsocket error WSAEFAULT Pin
ns27-Aug-04 4:54
ns27-Aug-04 4:54 
QuestionSDI-App in regular DLL with its own message queue? Pin
Dawn_x27-Aug-04 4:27
Dawn_x27-Aug-04 4:27 
Generalfind a string in a large sequence. Pin
Maximilien27-Aug-04 4:12
Maximilien27-Aug-04 4:12 
GeneralRe: find a string in a large sequence. Pin
David Crow27-Aug-04 5:40
David Crow27-Aug-04 5:40 
GeneralRe: find a string in a large sequence. Pin
Maximilien27-Aug-04 6:07
Maximilien27-Aug-04 6:07 
GeneralRe: find a string in a large sequence. Pin
Blake Miller27-Aug-04 7:13
Blake Miller27-Aug-04 7:13 
GeneralMultiple Inheritance question Pin
InheritThis!27-Aug-04 3:27
sussInheritThis!27-Aug-04 3:27 

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.