Lothar Haensler
February 14th, 2000, 10:00 AM
I have written a VB 6 add-in with a form window that offers an interface to PERL. You can run selected portions of the code pane window against a perl script.
Everything works well in design-mode, i.e. when the Add-In is started in the IDE.
You hit the run button and the perl script is executed, the result is displayed and you can copy the result to the clipboard.
Now as soon as the ActiveX DLL version of the Add-In is used, whenever the user hits the "Run script" button (which starts CreateProcess for the Perl script), the add-In is in the background, behind the VB-IDE window.
I have tried every trick that I now of, to no avail.
I used SetForegroundWindow, SetActiveWindow, BringWindowToTop... after running the script.
No luck so far.
I have run out of ideas.
Any input welcome.
Everything works well in design-mode, i.e. when the Add-In is started in the IDE.
You hit the run button and the perl script is executed, the result is displayed and you can copy the result to the clipboard.
Now as soon as the ActiveX DLL version of the Add-In is used, whenever the user hits the "Run script" button (which starts CreateProcess for the Perl script), the add-In is in the background, behind the VB-IDE window.
I have tried every trick that I now of, to no avail.
I used SetForegroundWindow, SetActiveWindow, BringWindowToTop... after running the script.
No luck so far.
I have run out of ideas.
Any input welcome.