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

Re: creating .dlls



PureBytes Links

Trading Reference Links

>At 04:11 PM 9/20/98 -0400, Sentinel Trading wrote:
>>Thanks for all the comments on direct cable connection, I will be
installing
>>network cards, soon.
>>My next question is how do you create a .dll for use in TradeStation, I
can
>>find
>>all the in the information in Userdlls.wri. I have a pretty good idea of
the
>>language, but how do I compile it.


>You must write the DLL in some language that supports the creation of
>DLL's. In the case of TS4 or earlier, you MUST create a 16-bit DLL. This
>can be done with Borland C++ (not Builder), older versions of Delphi
>(Pascal), or Microsoft Visual C++ Version 1.52c (the last 16 bit VC++).
>
>When TS5 is released, it will be 32 bit, and you will have a richer choice
>of modern compilers.
>
>You can also create a separate program (not DLL) in any language (say,
>32-bit VB5) and communicate with TS via global variables (e.g., TradeLab or
>Hashnums).
>
>Allan


Deming replied: Actually the only way to communicate to TS4.0 is via a
DLL-16 bit or via DDE. If you want to write a 32-bit program to communicate
with TS4.0, you'll need to write a 32-bit DLL and implement the complicated
task of "thunking" to get it to talk to TS4.0.  The problem is TS4.0 is
16-bit so trying to make it talk to a 32-bit application is a mess.  You're
much better off writing a 16-bit application and then communicating via a
16-bit DLL. Of course you don't have to have the application program at all.
A 16-bit DLL will carry you a long ways with TS4.0.  The 16-bit version of
TradeLab will work fine with TS4.0, but not their 32-bit version (unless
they've implemented thunking).