using mscomm32.ocx control

V

vk

I referenced the MSComm32.ocx in Tools/References menu;
it is listed as "Microsoft Comm Control 6".

However, when I try to reference the control MSComm, I
get a "Variable not defined" error.

Any help would be appreciated.

-VK



My sample code below:
-----------------------

Private Sub cmdSend_Click()

' Use COM1.
MScomm.CommPort = 1
' 9600 baud, no parity, 8 data, and 1 stop bit.
MScomm.Settings = "9600,N,8,1"
' Open the port.
MScomm.PortOpen = True
' Send the string to the port.
MScomm.Output = Me!MgsStr

' Close the serial port.
MScomm1.PortOpen = False


End Sub
 
J

Jim Shores

I can't do anything for you. That whole .dll/.ocx ad infintum concept, the references to the compiler is not only not perfectly documented but it is really complicated in the sense it takes a long long time to figure out whatall/how it do
Jim Shores S.->
 
M

M.L. Sco Scofield

Jim,

I'm not sure I understand your comments. As most of the Microsoft ActiveX
controls around were designed for Visual Basic and Visual C++, most of the
documentation is written for those programmers and is in those program's
documentation.

All of the Microsoft ActiveX controls are fairly well documented in the VB
and VC++ documentation. For on-line doc, see the MSDN Library at
http://msdn.microsoft.com/library/.

Sco

Jim Shores said:
I can't do anything for you. That whole .dll/.ocx ad infintum concept,
the references to the compiler is not only not perfectly documented but it
is really complicated in the sense it takes a long long time to figure out
whatall/how it do
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top