Obtain Handle of NAvision

asieraiesasieraies Member Posts: 49
Hi,

Can I obtain the handle of my NAvision window??

Thanks

Asier

Comments

  • garakgarak Member Posts: 3,263
    not with C/AL but with C++ or C#
    Do you make it right, it works too!
  • wakestarwakestar Member Posts: 207
    ... or any language which supports win32 api calls.
  • jlandeenjlandeen Member Posts: 524
    I agree with garak on this one...the only way I could see to be able to do something like this in the past is through Win32 API calls (which is better left to C++, C# or VB.Net).

    In the past I've developed a small little COM control that used the Win32API to loop through all of the window handles available and find one that matches. The problem with this method is that you cannot 100% guarantee that you're getting the right window handle. What if there are multiple navision clients open on the same machine? You will have to know what window caption Navision is assigning to the form - and this can be tricky as fin.exe may build the caption for you.

    Thats about as far as I got with it - because I couldn't find a method that guarantees I retrieve the right handle I stopped. (I haven't tried this again...it may be possible with Nav 5.0)

    If you find something bullet proof please post it!!
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
Sign In or Register to comment.