>>>>>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."
ENDPROC
ENDDEFINE
--sb--