Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 Tags
Subject: RE: Eventhandler on Winsock OCX
Thread ID: 218822 Message ID: 219613 # Views: 25 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Web, FTP and other Internet Protocols
Date: Friday, March 06, 2009 7:54:01 AM         
   


> Hi Stefan
> VFP seems dont make any difference between oleclass "MSWInsock.winsock.1" and "MSWinsock.Winsock" ?
> If upload the winsock.ocx on a form the oleclass is :"MSWInsock.winsock.1"
> But with a prg can build the form with the ocx for the two names without any returned error !
>

Salut Yousfi -

COM servers are defined in the Windows Registry (in HKEY_CLASSES_ROOT).
The convention there is that a "master" class like CreateObject("MSWinSock.WinSock") can have different versions,
so that the "default" would be defined in the CurVer key of the master class, but you can still explicitly
CreateObject() any (older) version if you want, say because you want to make sure that future updates do not
break your code.
So perhaps 'VisualFoxpro.Application' would be a good example assumed you have various Vfp versions installed,
Vfp6, 8 and 9 among them, and the most recent Vfp9 was installed last:

o = CREATEOBJECT('VisualFoxpro.Application')
? o.Version && 9.0
o = CREATEOBJECT('VisualFoxpro.Application.8')
? o.Version && 8.0
o = CREATEOBJECT('VisualFoxpro.Application.6')
? o.Version && 6.0




hth
-Stefan



COMPLETE THREAD
Eventhandler on Winsock OCX Posted by Stefan Pochert @ 3/2/2009 10:26:04 AM
RE: Eventhandler on Winsock OCX Posted by Yousfi Benameur @ 3/4/2009 10:37:41 PM
RE: Eventhandler on Winsock OCX Posted by Stefan Pochert @ 3/5/2009 9:20:04 AM
RE: Eventhandler on Winsock OCX Posted by Stefan Wuebbe @ 3/5/2009 9:23:49 AM
RE: Eventhandler on Winsock OCX Posted by Yousfi Benameur @ 3/5/2009 9:43:49 PM
RE: Eventhandler on Winsock OCX Posted by Stefan Wuebbe @ 3/6/2009 7:54:01 AM