Click here to Skip to main content
13,293,178 members (42,952 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i have an vb 6.0 application which is called from ASP pages passing some parameter. The application is running fine on windows XP but on migration to Windows 7 the application hangs. Please suggest.

Following is the ASP code which calls the VB application Visual_Unit.exe
Application("visual_exe") = Request.ServerVariables("APPL_PHYSICAL_PATH") & "Visual_Unit.exe"
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = Application("visual_exe")
Executor.Parameters = "1, " & t_Exp_path & ", " & t_filename & ", " & t_user_id & "
Executor.ShowWindow = True
StrResult = Executor.ExecuteWinApp 

Following is the VB code to be executed with the parameters provided by above code
Dim Pass_Value as object
Pass_Value = Command() 
aArr = Split(Pass_Value, ",")
Menu_Opt = aArr(0)

My machine is windows 7 32bit.
Above code working fine in WinXp
Posted 25-Sep-12 3:17am
Updated 25-Sep-12 22:42pm
joshrduncan2012 25-Sep-12 9:37am
Can you post a portion of your code where you think Windows 7 is not happy with? Please provide more detail as to what is going on? What kind of error are you getting? Are you getting the correct output, eventually?
i_monty 27-Sep-12 0:02am
i improved the question
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Set Compatibility Mode for That Application to Windows XP SP3, in Application Properties Dialog.

After that It works well in Windows 7.

If Your Application Uses File DSN for Database Connection You may need to Perform Some Additional Setup for Data Access.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Executor.ShowWindow = True looks very odd for an application running in the background, called by a service (the web server is running as a service, not in an interactive session). While on Windows XP, a service can interact with a user desktop, on Windows 7 it cannot!

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100