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

Re: TS To PB/DLL16 String Arguments



PureBytes Links

Trading Reference Links

Not sure if this will work, but did you try passing it byval as just a
string, not a string pointer?

Andrew

Patrick White wrote:

> If my DLL declarations in TS look like this:
>
>     Inputs: Sym("IBM");
>     DefineDLLFunc:"C:\MODE\MODECALC.DLL",LONG,
>       "SetSym",LPSTR;{Symbol Name}
>     Value1 = SetSym(IBM);
>
> Then what should my header look like?
>     Function SetSym(ByVal Sym as String Ptr) Export as Long
>
> Do I need to do anything with Sym to use it locally as a string? Please
> provide the exact syntax as I have tried multiple variations which all
> result in GPF.
>
> Thanks,
>
> Patrick White

--
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.