Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell command problem
Message
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Shell command problem
Divers
Thread ID:
00429365
Message ID:
00429365
Vues:
49
Well here goes...

VB6 SP4 and Crystal Reports Dev. Ed 8.0

I have a main program that I keep having the unfortunate luxury of everchanging reports. As this would normally not be a problem it has become one due too the complexity of many of the reports. What I have done to remedy the situation is create a generic ReportViewer.exe that can load a .rpt file and several other Report(*).exe files to handle the reports that need VB code to help perform the calculations. My final goal is to have command strings stored in the registry under a key and to loop through that key reading in each string value and building the menu with appropriate shell command to execute the command strings that are stored. This way I do not need to recompile the application each time a new report is added. I just use an admin program to store the info to the registry and the new menu is built as the program is loaded. The problems I am having implementing this solution are:

1. I use the shell command to call my report executables but how can I get the hWnd of these exes so that I can close them when my application ends.

2. How can I loop through the registry key to retrieve the values and then build the menu with the appropriate technique from #1.

I know the shell command returns a task ID but is there a way to use that to get the hWnd or is there another method to execute the exe and retrieve the hWnd immediately.

Please help me as this is urgent. I have to get this app back into production ASAP.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform