Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# and COM
Message
 
To
28/08/2001 15:24:26
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00548530
Message ID:
00550022
Views:
22
>> 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
Previous
Reply
Map
View

Click here to load this message in the networking platform