MSCOMM32.OCX and ComOutput function
Rich Sandler -- sandlr@tts.com Wednesday, July 10, 1996 Hello, VC++ 4.0 under Windows 95 Does anyone know how to send binary data with the MSComm control? In the OLE Control help file, it mentions 2 functions, ComOutput & ComInput. But when I insert the OLE control into my application, and it (Class Wizard) creates a control class, it does not create wrappers for these two functions. I've tried using SetOutput(), but I'm not quite sure what Variant type to use. BSTR have a trailling NULL which I do not need, and I'm not sure if COleVariant is what I'm looking for. Any insight or examples are very much appreciated. -- Richard Sandler sandlr@tts.com -- Programmer -- TTSI http://www.tts.com
Rich Sandler -- sandlr@tts.com Wednesday, July 10, 1996 Hello, VC++ 4.0 under Windows 95 Does anyone know how to send binary data with the MSComm control? In the OLE Control help file, it mentions 2 functions, ComOutput & ComInput. But when I insert the OLE control into my application, and it (Class Wizard) creates a control class, it does not create wrappers for these two functions. I've tried using SetOutput(), but I'm not quite sure what Variant type to use. BSTR have a trailling NULL which I do not need, and I'm not sure if COleVariant is what I'm looking for. Any insight or examples are very much appreciated. -- Richard Sandler sandlr@tts.com -- Programmer -- TTSI http://www.tts.com
Shiva Shenoy -- shiva@netbuild.com Monday, July 15, 1996 Refer KB article Q147740 "How to Handle Events for OLE Controls in a CWnd" in Microsofts's Knowledge Base. I ran into the same problem sometime back. >---------- >From: sandlr@tts.com[SMTP:sandlr@tts.com] >Sent: Wednesday, July 10, 1996 11:21 AM >To: mfc-l@netcom.com >Cc: sandlr@sun-1.netcom.com >Subject: MSCOMM32.OCX and ComOutput function > >Hello, > >VC++ 4.0 under Windows 95 > >Does anyone know how to send binary data with the MSComm control? > >In the OLE Control help file, it mentions 2 functions, ComOutput & >ComInput. >But when I insert the OLE control into my application, and it (Class >Wizard) >creates a control class, it does not create wrappers for these two >functions. > >I've tried using SetOutput(), but I'm not quite sure what Variant type >to use. >BSTR have a trailling NULL which I do not need, and I'm not sure if >COleVariant is what I'm looking for. > >Any insight or examples are very much appreciated. > >-- Richard Sandler >-- Programmer >-- TTSI http://www.tts.com >
| Вернуться в корень Архива |