![]() |
![]() ![]() ![]() |
| Modem Master ActiveX Control | |||||||
|
Modem Master ActiveX System Requirements
Installation
Removing Modem Master ActiveX
Distribution of Modem Master ActiveXWhen distributing your application, you need to:
No other files and actions are needed. We would appreciate if you mention us in your "About" window (not required). LicenseSee license.txt for details. RegistrationUnregistered version of Modem Master ActiveX stops functioning in 30 minutes after control was created in memory. You need to register the control in order to get rid of this restrinction. After registering, you will receive three numbers that you need to pass to the ActiveX control via Register() method. See below more information. Creating ActiveX Control It's better way to drop Modem Master ActiveX on the form in design mode. Your IDE will do all needed job in order to support it. You can freely create more than one instance of Modem Master ActiveX. Properties BSTR PortNamePort name. For example, "COM2" or "LPT1". PORT_RATE BaudRatePort baud rate. PORT_PARITY ParityPort parity. STOP_BITS StopBitsPort stop bits. PORT_BYTE_SIZE ByteSizePort byte size. long LastErrorLast error occured during latest method call. See GetLastError() description in MSDN. Methods VARIANT_BOOL Open()Opens specified port. Returns
void Close()This will close previously opened port. BSTR Execute(BSTR ModemCommand)Executes specifies command on a modem, and returns a reply. The command should be without CR or LF characted at the end. Returns empty string in case of error. See
BSTR Read()Reads data from a port. long Write(BSTR Data)Writes data to port. VARIANT_BOOL ClearCommBreak()See ClearCommBreak() description in MSDN for more information. long ClearCommError()See ClearCommError() description in MSDN for more information. VARIANT_BOOL EscapeCommFunction(long Func)See EscapeCommFunction() description in MSDN for more information. long GetCommMask()See GetCommMask() description in MSDN for more information. long GetCommModemStatus()See GetCommModemStatus() description in MSDN for more information. VARIANT_BOOL PurgeComm(long)See PurgeComm() description in MSDN for more information. VARIANT_BOOL SetCommBreak()See SetCommBreak() description in MSDN for more information. VARIANT_BOOL SetupComm(long InQueue, long OutQueue)See SetupComm() description in MSDN for more information. VARIANT_BOOL TransmitCommChar(char C)See TransmitCommChar() description in MSDN for more information. VARIANT_BOOL Properties()Pops up a Sound Control ActiveX tuning window. Returns
VARIANT_BOOL Register(long Code1, long Code2, long Code3)This function unlocks program to fully registered version without any restrinctions. void AboutBox()Pops up About window with information about version, release date, and contact information about the control. Events void OnOpened()Modem is opened. void OnClosed(void)Modem is closed. void OnEventBreak(void)EV_BREAK hardware event received. void OnEventCts(void)EV_CTS hardware event received. void OnEventDsr(void)EV_DSR hardware event received. void OnEventError(void)EV_ERR hardware event received. void OnEventRing(void)EV_RING hardware event received. void OnEventRlsd(void)EV_RLSD hardware event received. void OnEventRxChar(void)EV_RXCHAR hardware event received. void OnEventRxFlag(void)EV_RXFLAG hardware event received. void OnEventTxEmpty(void)EV_TXEMPTY hardware event received.
| |||||||