Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TcpServer and tcpClient Classes in VFP8 @...SAY code
Message
De
10/08/2007 14:43:41
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01247143
Message ID:
01247485
Vues:
23
>Hi Jay,
>
>>Never worked with COM servers before. Will I be able to include and reference their functionality/properties from my VFP8 form or code?
>
>In your case a COM DLL would most likely be a better approach than a COM EXE server. With a COM object, you can pass around references to your form, the form can call methods on the COM server, the COM server can call back to the form. As far as object access is concerned, COM objects a quite transparent.
>
>What the COM server cannot do is access any of the variables and tables directly. Whether or not a COM server approach works for you therefore depends widely on how much data you need to pass around and how many calls you make to the COM server.

I'm using the MSWinsock OLE which utilizes the _GDIPlus class (VFP9 FFC directory) to receive/send message data via ports to an external 3rd-party application. The nature of the process is that it could send a message every few seconds, and then receive an acknowledgement back from the external application. I currently use this OLE/class to receive messages from another external client, then send an acknowledgement back. This was written in VFP9 as a service because of the specific _GDIPlus class required. Now, to send the information from the main application, written in VFP8, I am trying to figure out the best way to do that as I do not have direct access to the VFP9 _GDIPlus class from within VFP8. Am I on the right track with using a COM containing the OLE/class to handle this?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform