>>You can only directly access the view (bind your controls to it) if you are using this as an In-Process .DLL COM object.
>
>You sure about this?
I just test it, and I guess you can't believe everything you read on the UT, even by people you feel know what they are talking about.
The bottom line is, NO you can't do this.
I tested this by creating a class which opend a file in a private data session. When I created the object as a VFP class, I was able to see the session and the open file in the VIEW window. However, when I created the class from a .DLL and had the DLL open the file, I was not able to see the session or file in the VIEW window.
Thanks for the heads up Erick...
FYI: Here is the class I tested:
Define Class Customer as Custom OLEPUBLIC
oSession = null
Function OpenFiles
This.oSession = createobj('Session')
SET DATASESSION TO (This.oSession.DataSessionID)
Use c:\vfe_apps\totalhr\data\ee_master
EndFunc
Function Destroy
select ee_master
use
This.oSession = null
EndFunc
EndDefine
BOb