You'll need to define the function in a BAS module and it would look
something like this.
Function GetBuffer(ByVal s As Long, ByVal w As Long, ByVal h As Long, ByVal
p As Long) As Long

Signature
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm
> Hi all,
> I'm using a 3rd part component (ocx) in vb6 and I have an example (see
[quoted text clipped - 15 lines]
>
> myOCX.SetCallBack((long)GetBuffer);
juky - 16 Apr 2005 17:02 GMT
Hi convert the code in this way:
Function GetBuffer(ByVal s As Long, ByVal w As Long, ByVal h As Long,
ByValp As Long) As Long
.......
End Function
myOCX.SetCallBack (GetBuffer) ' define callback function.
but I have compile error in the last espression, due to missing
parameters in GetBuffer !!!!!
Juky
> You'll need to define the function in a BAS module and it would look
> something like this.
[quoted text clipped - 27 lines]
> >
> > myOCX.SetCallBack((long)GetBuffer);
Jim Mack - 16 Apr 2005 19:28 GMT
> Hi convert the code in this way:
>
[quoted text clipped - 9 lines]
>
> Juky
Try:
myOCX.SetCallBack AddressOf GetBuffer

Signature
Jim
juky - 20 Apr 2005 11:29 GMT
Hi Jim,
I tried your solution but still compile error.
Still no idea how to convert that code frm VC++ to VB6!
Juky
> > Hi convert the code in this way:
> >
[quoted text clipped - 13 lines]
>
> myOCX.SetCallBack AddressOf GetBuffer