Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell command problem
Message
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00429365
Message ID:
00429400
Vues:
28
Look in the files section for my shellwait.zip, modify the 'wait' portion and you'll have the handle. Look at this I'll get the reg loop code from another program of mine.

>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.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform