>> 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