PDA

View Full Version : how to use glut in VB6?



mwk126
05-23-2005, 06:44 AM
I try to use glut in vb6.0, and glut32.dll,glut.dll have been copied to system diretory(windows XP: c:/C:\WINDOWS\system32), vbogl.tlb has been referenced.
I could use the commands including glutwirecube、glutwiresphrere and so on to draw pictures. but when I tried to use some commands including glutinit、glutsetwindowposition,I failed.
what's wrong with it? please give help, thank you.

mikael_aronsson
05-24-2005, 12:05 AM
Hi !

I am not sure you can use glut from a VB application, glut assumes that it has control over the message loop and takes care of all message dispatching, so the moment you enter the glut main loop your VB application would be "lost".

Mikael