Posts: 175
Threads: 43
Joined: Jun 2004
typelib MsComm32 "C:\WINDOWS\system32\MSCOMM32.OCX"
VARIANT T=TRUE
VARIANT F="asdfa"
MsComm32.MSComm c._create
c.Settings = "9600,N,8,1"
c.CommPort=1
out c.PortOpen
c.PortOpen = T
c.RThreshold=1
out c.PortOpen
c.Output=F
;c._setevents("c_DMSCommEvents")
;
;opt waitmsg 1
;wait -1
c.PortOpen = 0
This works. I can get an output to my HP48 calculator. But after playing with the control for awhile trying to get it to work QM starting crashing and acting strange. Now QM doesn't seem to recognize MsComm32 definition. You can see it is no longer grey and when I type "c." the popup menu doesn't appear. I think my code has left the MSCOMM32 loaded to many times. How do I unload it before exiting the macro?
Matt B