PureDispHelper and Custom VB6 OCX. Help initializing!

Just starting out? Need help? Post your questions and find answers here.
Yourself
User
User
Posts: 17
Joined: Fri Jan 18, 2008 2:47 pm

PureDispHelper and Custom VB6 OCX. Help initializing!

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