need help with glGetFloatv in visual basic 6

I’m trying to use glGetFloatv in visual basic 6 and it does not seem to work
does any one know how to make it work as well as declaring the function like

Public Declare Function or Sub glGetFloatv _
Lib “opengl32.dll” ( _
ByVal pname As ******, _
ByVal params As ******) _
As ****** ’
any help is needed thanx

You can get a type library at: http://is6.pacific.net.hk/~edx/
Then you call like this:
Dim m!(0 To 15)
glGetFloatv GL_MODELVIEW_MATRIX, m(0)

Otherwise try declaring it:
Declare Sub glGetFloatv _
Lib “opengl32.dll” ( _
ByVal pname As long, _
ByRef params As float)
(I didn’t test the declaration, but it would be called as above)