Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right-click in Explorer to Edit a PRG
Message
De
22/07/2000 21:53:54
 
 
À
22/07/2000 21:50:05
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00395936
Message ID:
00395942
Vues:
12
>Thanks Ed!
>
>I'll be passing this along to my buddy and probably try it myself.
>
>One more question - What is DDE?
>

Dynamic Data Exchange - an early Windows IPC mechanism that has largely been replaced by COM. It's still useful; DDE is supported by VFP and FPW, so it has some use there, and the Shell action support for DDE makes it easy to set up predetermined dialogs.

>
>
>>
*TinyEdit.PRG
>>LPARAMETER cFileToEdit
>>IF TYPE('cFileToEdit') = 'C' AND FILE(cFileToEdit)
>>   MODI COMM (cFileToEdit) NOWAIT
>>ENDIF
>>
>>In the registry, I add the following to have VFP open the file:
>>
>>"D:\Program Files\Microsoft Visual Studio\VFP98\VFP6" "D:\Program Files\Microsoft Visual Studio\VFP98\TinyEdit" "%1"
>>
>>Substitute the actual path for VFP for Program Files\Microsoft Visual Studio\VFP98\ on your target system.
>>
>>This will start a copy of VFP, firing up TinyEdit.PRG against the file you right-clicked. Each time it starts a new instance of VFP, where DDE access would rely on an existing copy of VFP that was running to start the edit session if it were accessible through DDE. You could also create an alternative DDE server, but it's more effort than it's worth from my POV.
>>
>>My actual TinyEdit is a bit more complex than this, since I check to see if there's anything that needs to be run in my developer configuration; for me, this means assigning some my standard work environment and initializing SDT, which I check for in the registry. This makes my TinyEdit not so tiny, the one above works fine.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform