Monthly Archives: August 2005

MFC: Create a resource-based default frame view

CMyFrame is a CFrameWnd created with class wizard
CMyView is a CFormView created with the class wizard
I want CMyFrame to always incorporate CMyView as the view. Make sure MyFrame.cpp includes MyView.h

bool CMyFrame::LoadFrame(…, CCreateContext* pContext)
{
 CCreateContext ctxt;
 if (pContext == 0)
 {
  ctxt.m_pNewViewClass = RUNTIME_CLASS(CMyView);
  pContext = &ctxt;
 }
 if (CFrameWnd::LoadFrame… (the rest is created by the wizard)
}

MFC warning

I might as well warn you know, I’m going to be blogging lots of frustrating things about MFC in this space for a while.

google talk

My google username is dterrell@gm… you can imagine where it goes from there.
gtalk is totally awesome.
Update: ok, here’s what I want from google talk:

SIP support so I can hook it up to my IPtel gear
multiparty chat
multiparty voice chat
immediate connect (like a walkie-talkie cellphone)
and yes, interconnection with other IM systems