
Untitled
By: a guest on
May 16th, 2012 | syntax:
None | size: 0.57 KB | hits: 20 | expires: Never
How to specify a function that takes a void* in C OCX module?
afx_msg void Test(void const* pSrc);
BEGIN_DISPATCH_MAP(COcxTestCtrl, COleControl)
DISP_FUNCTION_ID(COcxTestCtrl, "Test", 1, Test, VT_EMPTY, VTS_PI1 /*??*/)
END_DISPATCH_MAP()
dispinterface _DOcxTest {
properties:
methods: [id(1)] void Test(void const* pSrc);
};
Sub Test(pSrc As Any)
Member of OcxTestLib.OcxTest
Private Sub TestButton_Click()
Dim text() As Byte
Dim buflen As Long
buflen = 2 ^ 16
text = String(buflen, "Z")
OcxTest1.Test (text(0))
End Sub