Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB
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 2:17am
i_monty268
Edited 25-Sep-12 21:42pm
v3
Comments
joshrduncan2012 at 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 at 27-Sep-12 0:02am
   
i improved the question
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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!
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 6,649
1 Sergey Alexandrovich Kryukov 6,280
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2014
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