Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hovering Pin
Steve Echols14-Nov-06 18:37
Steve Echols14-Nov-06 18:37 
GeneralRe: hovering Pin
locoone15-Nov-06 12:31
locoone15-Nov-06 12:31 
GeneralRe: hovering Pin
Steve Echols15-Nov-06 18:41
Steve Echols15-Nov-06 18:41 
GeneralRe: hovering Pin
locoone16-Nov-06 14:10
locoone16-Nov-06 14:10 
GeneralRe: hovering Pin
Hamid_RT14-Nov-06 18:48
Hamid_RT14-Nov-06 18:48 
GeneralRe: hovering Pin
Waldermort14-Nov-06 20:21
Waldermort14-Nov-06 20:21 
GeneralRe: hovering Pin
Bram van Kampen16-Nov-06 16:49
Bram van Kampen16-Nov-06 16:49 
QuestionEnabling CLR caused a failure in my MFC window Pin
earlgraham14-Nov-06 12:30
earlgraham14-Nov-06 12:30 
We started developing on VS2005 with Shared MFC and CLR enabled (from VS6, static MFC, and no .Net support). Now one of my MFC windows in a subclass is failing. When I compile everything is fine, but when I run in debug mode I get an acceptation:
ENSURE(afxOccMgr !=NULL);

Here is my code examples
//In MainFrm.cpp
CMainFrame::CMainFrame()
{…
AfxEnableControlContainer();
…
	pMainFrm = this;
…
	AfxOleInit();
….
}

//in my subclass.h
Class Mysub : public CWnd
C3DWindow	*m_p3dWnd;

//in my subclass.cpp
Extern CMainFrame	*MainFrm;
…


MySub::Load()
{…
	m_ p3dWnd = new C3DWindow();
…
	bRet = m_ p3dWnd ->Create("Internal_Win", 0, Rect,
                           pMainFrm, ID_MEM, NULL, FALSE);
…
}


Note: My code from the stack that caused the acceptation is the above create. Any clues?

Thanks


Programmer
Glenn Earl Graham
Austin, TX

QuestionSimple and very useful thread class Pin
urid14-Nov-06 10:38
urid14-Nov-06 10:38 
AnswerRe: Simple and very useful thread class Pin
Maximilien14-Nov-06 11:14
Maximilien14-Nov-06 11:14 
AnswerRe: Simple and very useful thread class Pin
Zac Howland14-Nov-06 11:32
Zac Howland14-Nov-06 11:32 
QuestionDynamic menu Pin
Fraticiu Dan14-Nov-06 9:25
Fraticiu Dan14-Nov-06 9:25 
AnswerRe: Dynamic menu Pin
Steve Echols14-Nov-06 12:47
Steve Echols14-Nov-06 12:47 
GeneralRe: Dynamic menu Pin
Fraticiu Dan14-Nov-06 21:08
Fraticiu Dan14-Nov-06 21:08 
Questionfree zipper in c for zipping strings Pin
sknobli14-Nov-06 9:04
sknobli14-Nov-06 9:04 
AnswerRe: free zipper in c for zipping strings [modified] Pin
Waldermort14-Nov-06 9:12
Waldermort14-Nov-06 9:12 
GeneralRe: free zipper in c for zipping strings Pin
Chris Losinger14-Nov-06 10:14
professionalChris Losinger14-Nov-06 10:14 
GeneralRe: free zipper in c for zipping strings Pin
El Corazon14-Nov-06 10:46
El Corazon14-Nov-06 10:46 
AnswerRe: free zipper in c for zipping strings Pin
El Corazon14-Nov-06 10:52
El Corazon14-Nov-06 10:52 
GeneralRe: free zipper in c for zipping strings Pin
Chris Losinger14-Nov-06 11:11
professionalChris Losinger14-Nov-06 11:11 
GeneralRe: free zipper in c for zipping strings Pin
Jörgen Sigvardsson14-Nov-06 13:39
Jörgen Sigvardsson14-Nov-06 13:39 
AnswerRe: free zipper in c for zipping strings Pin
Hamid_RT14-Nov-06 18:58
Hamid_RT14-Nov-06 18:58 
AnswerRe: free zipper in c for zipping strings Pin
sknobli19-Nov-06 5:32
sknobli19-Nov-06 5:32 
QuestionFont Information Pin
Gupta Suraj14-Nov-06 8:09
Gupta Suraj14-Nov-06 8:09 
AnswerRe: Font Information Pin
Rajesh R Subramanian15-Nov-06 0:48
professionalRajesh R Subramanian15-Nov-06 0:48 

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.