TestStand 2.0f
Windows 2000 Pro SP4
MS Visual Basic 6.0
I have an ActiveX EXE I built using MS VB 6.0. I can use the ActiveX EXE
fine in VB and other ActiveX aware clients. When I try to call one method
from TestStand, I get a run-time error. The information gathered in
'SequenceFilePostStepRuntimeError' reports: (-17502) "Parameter
'i32ParamID': Out of present range.".
The ActiveX method, called GetParamString is declared in VB as:
Public Sub GetParamString(ByVal i32UutSite As Long, ByVal i32ParamID As
Long, sParamValue As String)
In the Sequence Editor, TestStand seems to recognize everything fine...
i32UutSite Number in
i32ParamID Number in
sParamValue String in/out
For i32ParamID, I am trying t
o pass the value of a StationGlobal, which
happens to be 4026544129 or 0xF0003001.
If I pass 0 for i32ParamID instead of the StationGlobal, the method gets
called. I get the 'Out of present range' error whether I specify 0xF0003001
via a StationGlobal or as a numeric literal. Unlike with the C DLL adapter,
I can't seem to specify the numeric format (short, int, long, etc) TestStand
whould pass when calling and ActiveX method. TestStand seems to be saying
that 0xF0003001 is an invalid value for a Number, or at least a Long,
neither of which is the case as far as I am aware.
Am I doing something stupid? Is this value illegal for a Number in
TestStand? Is there a way to force TestStand to pass this value to the
method as a Long without error?
---
Joe