[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DLL return values in TS



PureBytes Links

Trading Reference Links

> < 2.1.20  DLL RETURN VALUE TYPES (PRIORITY      10)
> DLL functions in Easy Language don't work properly.  Return
> value types of anything other than an int or a long don't
> seem to work.  Also passing parameters as pointers to
> variables doesn't work except for strings.
> 
> >>
> 
> Can anyone confirm or refute this.....

The complaint is not valid.  Borland and Microsoft compilers return FLOAT
values from functions differently.  Easy Language programs use the Microsoft
method.  DLL functions compiled with a Microsoft compiler can return FLOAT
values to Easy Language programs.  There is no problem returning FLOAT
values via pointers in a DLL function parameter list using either compiler. 
Furthermore, there is no problem using either compiler in passing pointers
to Easy Language FLOAT variables as DLL function arguments.

  -Bob Brickey
   Scientific Approaches
   sci@xxxxxxxxxx

Bob,

Did you find that in the Tradstation manual or the Easy Language manual?  :>)


Charles Kaucher

If this doesn't scare you then it is already too late.

''Our task of creating a socialist America can only succeed
when those who would resist us have been totally disarmed."
    Sarah Brady, Chair Handgun Control, Inc.