Oh you guys are sweet!
What I did was just create a regular ActiveX control (called Test) using the MFC appwizard and then I just started throwing in my OpenGL code into the TestCtl.cpp file like I did with the view.cpp file of my regualr MFC application.I’m thinking maybe there’s something wrong with this OnCreate function:
int CTestCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
if (COleControl::OnCreate(lpCreateStruct) == -1)
// TODO: Add your specialized creation code here
m_hDC = ::GetDC(m_hWnd);
m_hRC = wglCreateContext(m_hDC);
ResizeScene( rect.right,rect.left );
MessageBox(“Finished OnCreate() function!”,“Note”,MB_OK);
You see,the thing is,my ActiveX control project compiles fine with no problems or warnings.But when I go to test it out in the ActiveX control test container,I don’t see anything.The background color should be black but it’s brown instead I would love to see some source code but like you guys said,you’re bound by contract.
If the above code is correct then I must be doing something else wrong in my project.Thanx for the replies guys!