Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using a VB6 application to launch a specific URL and post parameters.

Second time when I am trying to open the URL with new parameters, I am searching all the open windoes to find if this URL is already opened then use the same browser for refresh.

I am doing this by looping through all windows using Shdocvw.shellwindows. this works perfectly fine on my desktop. The problem is when I run this application from Citrix server (my application is hosted on Citrix as well) it throws error when I try to instantiate Shdocvw.shellwindows.

After some research I found that this is because Citrix does not have explorer.exe and hence the error.

Can some provide me with alternatives to search IE windows without using Shdocvw.Shellwindows. it would be a great help.

Let me know if any information is required

Thank you.
DD
Posted

1 solution

Firstly I think you mean iexplore.exe not explorer.exe

Essentially your project depends on mshtml.dll and SHDocVw.dll which normally come shipped with Internet Explorer.

Install both of those onto the Citrix server with your application... Visual Studio 6 has a setup feature that will list all of the project dependencies, and all of them will need to be installed on the machine running your application.
 
Share this answer
 
Comments
dpdby 9-Jul-14 9:13am    
Thanks for the input. I have verified that citrix server has both the components mentioned. I am using two objects of SHDOCVW.dll
Set browser = new Shdocvw.InternetExplorer (This line works well)
Set ShellWindows = new Shdocvw.ShellWindows (This line fails on Citrix) -- Reason for failure which I got from google is that Citrix does not have explorer.exe running which is used to enumerate windows and hence when I try to instantiate the Shellwindows on Citrix it fails. My code works fine on a regular desktop.
Mahi Siri 11-May-15 4:05am    
Same issue I am also facing for my application. Can you please let me know the resolution??
CHill60 11-May-15 12:29pm    
On Citrix or desktop? My suggestion didn't seem to work for the OP - might be worth getting in touch with them to see if they were able to resolve the issue. It's certainly worth checking that you have those dll's installed on to your machine (and registered via sysWoW64\regsvr32.exe

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900