结构体数组的传递
我用VB.net调用VC编写的一个OCX。VC的OCX中一个接口的参数类型是long*,这个long*实际上是一个结构体数组。如下:
LONG GetInfo(LONG nOption, LONG* rcBound);
RECT* pRect = (RECT*)rcBound
Structure RECT
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
End Structure
Public Overridable Function GetInfo(ByVal nOption As IntegerByRef rcBound As Integer) As Integer