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

Re: TS4-DLL vs. 2000i



PureBytes Links

Trading Reference Links

buenas dias ,

I write dll's with Microsoft C++ version 1.0; you can use wathever
programming environnement
you want if it can build dll's 16 bits.
the file userdlls.wri (in c:\omega\prog) provides a lot of infos.

An example:

1) you write your function in (say) C-language:
         float MyFunc(float x)
         {  ...... calculus....... ;
            return y ;
         }

2) you declare the function as:
        float far pascal export MyFunc( float x) ;

3) you compile and build with dll option with the name&path , (say),
c:\Mydll.dll

4) in your system (or indicator, paintbar, showme) , you declare:
     DefineDLLFunc: "c:\Mydll.dll", float  ,"MyFunc", float   ;

5) then you call the function when you need it:
           Value1 = MyFunc( Close ) ;

6 and last) it's not a big deal , but at this point you deserve a long drink
on the sofa

Good Luck
Vincent.