Link to home
Start Free TrialLog in
Avatar of riturajkhare
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
Avatar of EDDYKT
EDDYKT
Flag of Canada image

try

private withevents mycomm as mscommlib.mscomm

set mycomm = 'your pass in comm object'


you should have event called mycomm_onevent
ASKER CERTIFIED SOLUTION
Avatar of kfrick
kfrick

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GivenRandy
GivenRandy

Please fill in 'your pass in comm object'.  When I tried this, I got an error message (object not existing).