how to use glut in VB6?

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.

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”.