Link out of vb6 creates allways a new instance of Navision

datenkulturdatenkultur Member Posts: 14
I try to open a Navision instance using a link like this:

[url=navision://client/run?servername=127.0.0.1%26company=Test%26servertype=Navision%26target=Report50000]navision://client/run?servername=127.0. ... eport50000[/url]

I use VB6 with the API-call ShellExecute
It works fine, but if I start the function again I allways get a new instance of navison. Using the same link as a Desktopshortcut the link allways uses the first created instance of navison.

I would like to use only the first instance of navision in my vb6 application as well. It is not nessesary to use ShellExecute, if there is another possible way.

Any ideas?
Customizing + Training + Workshops + Development
Navision / Jet Reports / dkImport / dkSchema / COM /.NET

http://www.datenkultur.de

Answers

  • datenkulturdatenkultur Member Posts: 14
    The reason for the strange behavior was the debugging-interface of vb6 (again). In order to find the bug I allways started the application with my com-components in debug-mode. I can only speculate why, but using the compiled dll everything works great.
    Customizing + Training + Workshops + Development
    Navision / Jet Reports / dkImport / dkSchema / COM /.NET

    http://www.datenkultur.de
Sign In or Register to comment.