riturajkhare
asked on
Passing MSComm Control to a DLL
I am trying to pass a control of type MSComm to a dll. I have declared it as of type MSCommlib.MSComm. The initialization etc. for the comm port is done in the DLL. Now I want to use the OnComm event. Should I place it inside the DLL or in the form code where the MSComm control is placed. In either case the oncomm event is not getting fired even though the characters arrive in the receive buffer. I have set the RThreshold property to 1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please fill in 'your pass in comm object'. When I tried this, I got an error message (object not existing).
private withevents mycomm as mscommlib.mscomm
set mycomm = 'your pass in comm object'
you should have event called mycomm_onevent