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

Re: Referencing a DLL in TS2000i



PureBytes Links

Trading Reference Links

> I have an indicator that I wrote that references a .DLL file.
> 
> The syntax goes like this:
> 
> DefineDLLFunc: "C:\CUSTOM\CUSTOM.DLL", float, "EXPDISPMA", float, float,
> float, float, float ;
> 
> It (still) works great in TS40, but not it TS2000i - ".DLL not found"
> 
> Any ideas why?  Did the syntax change?
> 
> Doug

If it is the same DLL that used to work in TS 4 then it must be a 16-bit
DLL.  TS2000i interfaces with 32-bit DLLs.  My guess is it found the DLL by name
but not by type.  TS2000i cannot call a 16-bit DLL.  You will need to recompile
it for 32-bit mode or, a lot more complex, you will have to write a 32/16
thunk so TS can call the 32-bit thunk and it implements all the interfacing
to and from the 16-bit DLL.

Do note, I have not written a 32-bit DLL for TS2000i yet but I understand that
calls to 32-bit DLLs are meant to be supported.

Chris Norrie