VB and Activex Control
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I'm writing an activex Control in VC++ to be deployed with VC++, VB and VBScript. The problem that i encouters is the following : I writed a function in the Activex Code which takes as arguments a VARIANT FAR * which is a SAFEARRAY, in this function i should be able to read all variable Contents usibg SAFEARRAYs methods. With VC++, everything go allright. With VB, i just write the following code : ... dim Lst as variant redim Lst(2) Lst(0) = 1 Lst(1) = 2 Result = MyActivex.Function1(Lst) ... When debugging this program within the VC Activex Code, i notice that the the Lst parameter don't seems to have the good values, it contains another values. What should i do to pass an array in my Activex Function... I need Your Help. :confused: