I have the following code:
ComForm = CREATEOBJECT('Form') && Create object to hold MSComm
ComForm.ADDOBJECT("Testcom","Olecontrol","MSCOMMLib.MSComm"
&& Load MSComm
ComForm.Testcom.CommPort = 1 && Use Comm1, The first Serial Port.
ComForm.Testcom.Settings = "9600,N,8,1" && 9.6 Kbaud, No Parity, 8 data Bits, 1 Stop Bit
ComForm.Testcom.Sthreshold = 0 && send immediate - no char held in buffer
ComForm.Testcom.PortOpen = .T. && open the port
ComForm.Testcom.OUTPUT = CHR(27) + "R01" && move back up for centering purposes
I can build and run on my develope machine just fine. When I try to run from another workstation, I get the error object not registered. I then get an error from each of the remaining lines that Testcom does not exist, which it wouldn't if the first line bombed.
I have tried making sure Active-X was checked for Microsoft Communications in the setup wizard (VFP6). I have tried copying all the MSComm32 files to the WINNT\SYSTEM32 directory and running regsvr32 to manually register and am told that the register was successful.
Does anyone have any suggestions at this point? My boss is muttering Visual Basic and something about new programming team at this point.
ComForm = CREATEOBJECT('Form') && Create object to hold MSComm
ComForm.ADDOBJECT("Testcom","Olecontrol","MSCOMMLib.MSComm"
ComForm.Testcom.CommPort = 1 && Use Comm1, The first Serial Port.
ComForm.Testcom.Settings = "9600,N,8,1" && 9.6 Kbaud, No Parity, 8 data Bits, 1 Stop Bit
ComForm.Testcom.Sthreshold = 0 && send immediate - no char held in buffer
ComForm.Testcom.PortOpen = .T. && open the port
ComForm.Testcom.OUTPUT = CHR(27) + "R01" && move back up for centering purposes
I can build and run on my develope machine just fine. When I try to run from another workstation, I get the error object not registered. I then get an error from each of the remaining lines that Testcom does not exist, which it wouldn't if the first line bombed.
I have tried making sure Active-X was checked for Microsoft Communications in the setup wizard (VFP6). I have tried copying all the MSComm32 files to the WINNT\SYSTEM32 directory and running regsvr32 to manually register and am told that the register was successful.
Does anyone have any suggestions at this point? My boss is muttering Visual Basic and something about new programming team at this point.