Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send data to network PC by specify IP
Message
 
 
To
07/05/2002 05:44:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00652200
Message ID:
00653476
Views:
20
>WinSock have two methods with same name as two events - Connect and Close. These methods/events are necessary if you use TCP protocol. In VFP, if you call Connect method to establish connection with remote computer, you actually run code, which you are write under Connect event. Thus, establishing connection is impossible. Situation is the same also for Close method/event.

The Winsock control does work within VFP. I have used it in testing and many others here, on the UT, have used it in production.

The two different Connect and Close methods/events come from two different interfaces (IMSWinsockControl and DMSWinsockControlEvents). DMSWinsockControlEvents is exposed in the form/class designer so you can write code to run when a particular event occurs. However, if you explicitly call Connect or Close, I believe you are actually calling the IMSWinsockControl method which may or may not result in the event firing.

You may have this problem confused with another documented problem. VFP, unlike VB, can not handle ActiveX controls that have properties and methods with the same name. Mabry creates a number of controls with this issue.

Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform