Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bindevent crashes Fox
Message
 
 
À
31/05/2005 11:56:30
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01018697
Message ID:
01018739
Vues:
13
>>>>>Also what kind of interface should I implement for a vfp class to bind mscomm to?
>>>>
>>>>In general, you would use Object Browser to explore a COM object and generate such VFP class.
>>>
>>>I have a few questions here.
>>>In the Object Browser how do I find out what interface to implement?
>>>
>>>Since I need to implement a different interface for my contailner does that mean I can't create that contailner in a visual class designer?
>>
>>Ususaly there's word Event or Handler in the name of an interface. For mscomm it's DMSCommEvents interface. It can omly be implemented in code.
>My class definition starts like this:
>
>DEFINE CLASS cntTest1 AS Container
> IMPLEMENTS IMSComm IN "MSCommLib.MSComm"
>....
>
>Is that correct?

No.
DEFINE CLASS myclass AS session OLEPUBLIC

	IMPLEMENTS DMSCommEvents IN "c:\windows\system32\mscomm32.ocx"

	PROCEDURE DMSCommEvents_OnComm() AS VOID;
 				HELPSTRING "Occurs whenever the value of the CommEvent property changes."
	* add user code here
	ENDPROC

ENDDEFINE
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform