Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote Views in COM objects
Message
From
09/11/1999 09:55:16
 
 
To
08/11/1999 22:58:19
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00288446
Message ID:
00288996
Views:
33
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform