Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WinSock.ocx or WSock32.dll
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
WinSock.ocx or WSock32.dll
Divers
Thread ID:
00420387
Message ID:
00420387
Vues:
52
Does anyone have any examples of using the WinSock OLEControl?

I have a simple version working single threaded (apart from http keep-alives which still cause GP faults) but cannot find a way to get it working as a multithreaded COM object.

When I try to include the OLEControl into a COM (OLEPublic) class I get an 'Object Class is invalid for this container' error at compile time. I can CREATEOBJECT() directly from the 'MSWinSock.Winsock.1' COM object but then because it does not have a WriteMethod() method I cannot do anything with it.

Perhaps I should be calling functions within WinSock.dll/WSock32.dll/Sockets.dll directly and avoid the WinSock.ocx completely but cannot find any examples of how to do this.

Anyone got any clues?

Thanks,
Nick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform