Page 1 of 1

PureDispHelper and Custom VB6 OCX. Help initializing!

Posted: Wed Feb 20, 2008 11:48 am
by Yourself
So I'm drooling over the PureDispHelper Library by ts-soft.
Problem is, I cant get to understand the ocx part which is the only reason why I'm having sleepless nights over this. :)
I created a very small OCX control in Visual Basic 6.

Code: Select all

Private Sub UserControl_Click()
MsgBox "test"
End Sub
It works perfect when its running inside the IE window.
So, how can I get it to work with PureBasic using DispHelper?
Obviously, I read the help file, but I quite don't understand the parameters required for

Code: Select all

OCX_CreateGadget(Gadget.l, x.l, y.l, width.l, height.l, ProgID.s[, CLSID.s]) 
I know about all the parameters except ProgID.s. What does it do and how can I fulfill it?
An example would rock!
BTW, I looked at Animated Gif Demo by Kiffi, but still, ProdID.s does not make sense.