Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# and COM
Message
 
À
28/08/2001 15:24:26
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00548530
Message ID:
00550022
Vues:
23
>> Be careful with this server, it may execute any command for you, for example
>> oVFP.myDoCmd("DELETE FILE c:\*.*") && DON'T DO THIS!!!
>
>
>i agree with your suggestion to use an OLEPUBLIC server and your
>reply was lucid, but "oVFP.myDoCmd" ??? yikes!! talk about leaving
>open the chicken coop and asking the fox to come in !!
>
>i would never write a server that implements a generic command.
>your methods should always be purpose-specific and contain parameter
>validation so you can guarantee that no malicious
>actions can be taken (even accidentally).

Yes, you are right, that was just a sample which demonstrates the full power of it. Similar sample is almost always demonstrated at DevCon(s) sessions about COM.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform