PureBytes Links
Trading Reference Links
|
On Thu, 07 Feb 2002, Mike Eggleston wrote:
> I have the code:
>
> DefineDLLFunc: "kernel32.dll", long, "GetTickCount", long;
>
> vars: tickcount(0);
>
> tickcount = gettickcount(0);
>
> print("d=", date, " t=", time, " tc=", tickcount);
>
> but it gets an error within TS6. How do I easily call this function?
> I know the function returns a DWORD, but when I define the function
> above as using a DWORD instead of a long it also fails.
>
> Mike
>
Maybe I found the problem. I thought the DefineDLLFunc had to have
an input parameter at the end. I removed the trailing 'long' and
now I'm waiting to see if the indicator works.
Mike
|