Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Entry Point Not Found???? Pin
RobJones4-Apr-03 2:46
RobJones4-Apr-03 2:46 
GeneralCHtmlView & ScrollBar Pin
jeremysay3-Apr-03 22:09
jeremysay3-Apr-03 22:09 
GeneralRe: CHtmlView & ScrollBar Pin
Mike Upton3-Apr-03 22:31
Mike Upton3-Apr-03 22:31 
GeneralRe: CHtmlView & ScrollBar Pin
jeremysay4-Apr-03 1:00
jeremysay4-Apr-03 1:00 
GeneralDirectDraw: blitting between 2 differents pixels formats surfaces... Pin
Raphael Kindt3-Apr-03 22:01
Raphael Kindt3-Apr-03 22:01 
QuestionHow can I know explorer band's events??? Pin
Jun-ha Park3-Apr-03 21:56
Jun-ha Park3-Apr-03 21:56 
GeneralAlpha Blending in MFC image list Pin
Ceri3-Apr-03 21:46
Ceri3-Apr-03 21:46 
GeneralWhy,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
zhangyifei3-Apr-03 21:01
zhangyifei3-Apr-03 21:01 
I want to Create a Frame/view/doc structure On a ActiveX Control,but It will be Found Memory leak! And I Found that the reasons is :

CDocManager* CDocManager::pStaticDocManager;
CPtrList* CDocManager::pStaticList;

How Can I avoid Memroy leak?
the Following is My Code :
BOOL Create()
{
if( m_pFrameWnd )
{
if( IsWindow(m_pFrameWnd->m_hWnd) ) return TRUE;
}

CSingleDocTemplate * pDocTemplate;

pDocTemplate = new CSingleDocTemplate(IDR_MAPTYPE,
RUNTIME_CLASS(CMapDoc),
RUNTIME_CLASS(CMapFrame),
RUNTIME_CLASS(CMapView));


CMapDoc * pDoc = new CMapDoc;

CCreateContext Context;
Context.m_pCurrentDoc = pDoc;
Context.m_pNewDocTemplate = pDocTemplate;
Context.m_pNewViewClass = RUNTIME_CLASS(CMapView);
Context.m_pLastView = NULL;
Context.m_pCurrentFrame = NULL;

CMapFrame * pFrameWnd = new CMapFrame;

m_pDoc = pDoc;
m_pFrameWnd = pFrameWnd;
m_pDocTemplate = pDocTemplate;
CRect rcMap;

GetClientRect(&rcMap);
BOOL ret = m_pFrameWnd->Create(AfxRegisterWndClass(CS_DBLCLKS), NULL, WS_CHILD|WS_VISIBLE, rcMap,this,NULL,&Context);
m_pFrameWnd->ShowWindow(SW_SHOW);

return ret;
}

ZHANGYIFEI


ZHANGYIFEI
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
KarstenK3-Apr-03 21:19
mveKarstenK3-Apr-03 21:19 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
Mike Upton3-Apr-03 22:16
Mike Upton3-Apr-03 22:16 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
Harrier4-Apr-03 4:59
Harrier4-Apr-03 4:59 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
John R. Shaw4-Apr-03 8:04
John R. Shaw4-Apr-03 8:04 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
zhangyifei4-Apr-03 20:44
zhangyifei4-Apr-03 20:44 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
John R. Shaw8-Apr-03 10:42
John R. Shaw8-Apr-03 10:42 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
zhangyifei11-Apr-03 4:33
zhangyifei11-Apr-03 4:33 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
John R. Shaw14-Apr-03 9:19
John R. Shaw14-Apr-03 9:19 
GeneralWhy no one can resolvoe this Question?Doc/view/frame! Pin
zhangyifei3-Apr-03 20:57
zhangyifei3-Apr-03 20:57 
GeneralConvert CString to char[32] Pin
JensB3-Apr-03 20:49
JensB3-Apr-03 20:49 
GeneralRe: Convert CString to char[32] Pin
Cedric Moonen3-Apr-03 21:21
Cedric Moonen3-Apr-03 21:21 
GeneralRe: Convert CString to char[32] Pin
Rein Hillmann3-Apr-03 22:36
Rein Hillmann3-Apr-03 22:36 
GeneralRe: Convert CString to char[32] Pin
KarstenK3-Apr-03 21:22
mveKarstenK3-Apr-03 21:22 
GeneralRe: Convert CString to char[32] Pin
JensB3-Apr-03 22:10
JensB3-Apr-03 22:10 
GeneralRe: Convert CString to char[32] Pin
jhwurmbach4-Apr-03 1:27
jhwurmbach4-Apr-03 1:27 
Generalurgent help reqd for fonts !!! Pin
drmzunlimited3-Apr-03 20:28
drmzunlimited3-Apr-03 20:28 
GeneralCTreeCtrl - leaf - Pin
JensB3-Apr-03 19:46
JensB3-Apr-03 19:46 

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.