PureBytes Links
Trading Reference Links
|
I don't think you can get the handle while being in the dll - I might
be wrong there - however:
Why can't you assign within the DLL a unique ID (some counter)
whenever the DLL is called and no ID or 0 ID is passed to it.
First call:
TS passes '0' ID to DLL -> DLL creates ID
DLL passes new ID to TS -> TS saves ID in variable that doesn't get
overwritten on every new tick. TS consecutive calls to DLL: TS passes
stored ID to DLL -> DLL uses ID
Gerrit Jacobsen
> *Only for those who use DLLs and might know Win32 API*
> Others, please disregard.
>
> I need some help with Win32 API ( user32.dll ).
> I am trying to find a function ( or a combination of )
> to return a Current window handle.
>
> Reason: every chart is window and every window has
> a handle. If I use GlobPro/Hashnums/Qlsnumbs and
> multiple studies/system, I need that handle to use is as
> a unique object name to allocate memory per system
> ( same system run on different symbols ).
>
> Note: the following tricks to create a unique object name
> will not work for me:
> getsymbolname will not work - might be
> two charts with same symbol, + barinterval will not
> work - might be same chart, + firstdate + lastdate
> will not work - might be the same chart for other
> system, + parameters will not work - optimization
> problem, input will work but no thanks.
>
> Anybody out there can help me out on that?
> How can I get a window handle of the chart
> that the system is running in?
> Not the top window, not the active, not the
> child or the parent but the Current one - the
> one out which I am going to call this function.
> :-)
> Val.
>
|