After years of resistance, I'm finally setting about writing my first ActiveX DLL in VB. It took about ten minutes for me to run into an problem.
Want I want to do is pass a SAFEARRAY from a C++ Service into this ActiveX DLL as an [in] parameter. Thus far, I've been able to spec input-only stuff by declaring things ByVal on the VB side. Arrays can't be ByVal, though, so I keep hitting a wall.
Rephrased -- How do I declare this:
[tt]void Test([in] SAFEARRAY(long) TheArray);[/tt]
in Visual Basic 6.0?
Want I want to do is pass a SAFEARRAY from a C++ Service into this ActiveX DLL as an [in] parameter. Thus far, I've been able to spec input-only stuff by declaring things ByVal on the VB side. Arrays can't be ByVal, though, so I keep hitting a wall.
Rephrased -- How do I declare this:
[tt]void Test([in] SAFEARRAY(long) TheArray);[/tt]
in Visual Basic 6.0?