If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

OpenGL Component for VC++

Hey there. Anyone know of an OGL component/control for VC++, Something that takes the hassel out of setting up an OGL viewport (and lets one use the viewport on a form with other controls) I have managed to find a great one for Borland's C++ Builder,but nothing for VC++.
Thanks

Re: OpenGL Component for VC++

Hi,

I have used this code so many years ago and it has most of the time worked fine (and is working fine now on my operating system). However, on some computers of other people, it sometimes shows two types of erratic behaviour:

1. There is nothing drawn on screen, the static control remains a grey area. Sometimes this happens immediately, sometimes after reopening the control, sometimes not at all
2. On some computers the text (see below) is not drawn or you can see it flicker briefly

I use virtually the same code, apart from:

Code:

COpenGLstatic::~COpenGLstatic()
{
delete m_pDC;
}

Was this forgotten in the original or am I wrong? Isn't also an initialisation in the constructor, m_pDC = NULL; necessary?