The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OCX issue
#1
I used to use NETCommOCX to allow QM to interface with serial ports, but it doesn’t work with Windows 7. I found another handy OCX called StrokeReader, but I can’t get it to work in QM. The Excel VBA example from the website works fine, but I get “Error (RT) in ConfigSerPort: 0x8000FFFF, Catastrophic failure. ?” when I try to set or read any property using QM. Any ideas?

VBA example


ConfigSerPort
Code:
Copy      Help
;typelib SerPort "C:\Program Files\StrokeReader\StrokeReader64.ocx" ;;put in init2 after testing
VARIANT t=TRUE
SerPort.StrokeReader c._create ;;works
c._setevents("c__DStrokeReaderEvents") ;;works

;c.Connected=t ;;fails
;c.Port=5 ;;fails
;c.BaudRate=9600 ;;fails
;c.Version ;;fails
Matt B


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)