If you're using a Session class (which you should be), then you are getting a Private data session (similar to a form). Many SET commands are scoped to a Private data session. You can find these listed in the help file.
>Craig,
>
>I tried accessing my mtdll from VFP 8.0 and got an error message "File access denied". So I changed my USE statement by adding the SHARED NOUPDATE clauses and the dll worked. Now my question is why, when I set Exclusive off in the mtdll code, do I need to add these clauses? I SET EXCLUSIVE OFF in the beginning of the code but outside the OLEPUBLIC class. Do I need to place all my SET environment statements inside the class?
>
>Joel
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer