Click here to Skip to main content
15,918,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionactivex with managed assembly Pin
Sandra197414-Nov-06 4:56
Sandra197414-Nov-06 4:56 
QuestionProblem in Owner Draw Button Pin
Parthi_Appu14-Nov-06 4:51
Parthi_Appu14-Nov-06 4:51 
AnswerRe: Problem in Owner Draw Button Pin
PJ Arends14-Nov-06 5:51
professionalPJ Arends14-Nov-06 5:51 
GeneralRe: Problem in Owner Draw Button Pin
Parthi_Appu14-Nov-06 17:20
Parthi_Appu14-Nov-06 17:20 
GeneralRe: Problem in Owner Draw Button Pin
Hamid_RT14-Nov-06 19:09
Hamid_RT14-Nov-06 19:09 
GeneralRe: Problem in Owner Draw Button Pin
Parthi_Appu14-Nov-06 19:36
Parthi_Appu14-Nov-06 19:36 
GeneralRe: Problem in Owner Draw Button Pin
Hamid_RT14-Nov-06 20:16
Hamid_RT14-Nov-06 20:16 
QuestionCreating a MFC window in a subclass [modified] Pin
earlgraham14-Nov-06 4:49
earlgraham14-Nov-06 4:49 
I’m adding a MFC window to an existing application. When I compile the “Create” everything is fine, but when I compile I get an acception:
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: I’m developing on VS2005 with Shared MFC and CLR enabled.

Thanks


-- modified at 11:05 Tuesday 14th November, 2006

Programmer
Glenn Earl Graham
Austin, TX

Answeruse <pre></pre> tags Pin
toxcct14-Nov-06 4:51
toxcct14-Nov-06 4:51 
GeneralRe: use <pre></pre> tags Pin
Max++14-Nov-06 5:36
Max++14-Nov-06 5:36 
GeneralRe: use <pre></pre> tags Pin
toxcct14-Nov-06 5:41
toxcct14-Nov-06 5:41 
GeneralRe: use <pre></pre> tags Pin
Mark Salsbery14-Nov-06 5:52
Mark Salsbery14-Nov-06 5:52 
GeneralRe: use <pre></pre> tags Pin
toxcct14-Nov-06 5:58
toxcct14-Nov-06 5:58 
GeneralRe: use <pre></pre> tags Pin
Hamid_RT14-Nov-06 8:12
Hamid_RT14-Nov-06 8:12 
GeneralRe: use <pre></pre> tags Pin
Hamid_RT14-Nov-06 8:09
Hamid_RT14-Nov-06 8:09 
Questioncopy image file to memory [modified] Pin
_tasleem14-Nov-06 4:47
_tasleem14-Nov-06 4:47 
QuestionRe: copy image file to memory Pin
David Crow14-Nov-06 4:54
David Crow14-Nov-06 4:54 
AnswerRe: copy image file to memory Pin
_tasleem14-Nov-06 5:27
_tasleem14-Nov-06 5:27 
AnswerRe: copy image file to memory Pin
David Crow14-Nov-06 5:35
David Crow14-Nov-06 5:35 
GeneralRe: copy image file to memory Pin
_tasleem14-Nov-06 6:37
_tasleem14-Nov-06 6:37 
QuestionRe: copy image file to memory Pin
David Crow14-Nov-06 6:45
David Crow14-Nov-06 6:45 
AnswerRe: copy image file to memory Pin
_tasleem15-Nov-06 2:54
_tasleem15-Nov-06 2:54 
QuestionRe: copy image file to memory Pin
David Crow15-Nov-06 3:18
David Crow15-Nov-06 3:18 
AnswerRe: copy image file to memory Pin
_tasleem15-Nov-06 20:49
_tasleem15-Nov-06 20:49 
QuestionHow to save and resotre the Child Frame? Pin
abuseyoudna198114-Nov-06 4:26
abuseyoudna198114-Nov-06 4:26 

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.