473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem using MSComm32.OCX

I am having trouble using MSComm32.OCX in my VB6 application.
When I attempt to use the set command to create the comm object, like this:

Dim MSComm1 As Object
Set MSComm1 = CreateObject("MSCommLib.MSComm")

the compiler errors-out with the message "Run-time error 429: ActiveX
comonent can't create object".

The online help indicates this problem can be caused when the MSComm32.OCX
control is not registered. However, I used Regedit to check, and the control
appears to be registered correctly.
I have also used the Project/Components menu to add this control to my
project, and the control shows up as expected when I use the Object Browser.
So, unless I am missing something, the control appears to be installed
correctly.

Any ideas when I can't seem to access this control?
Jul 17 '05 #1
2 17903
I'll never did it this way.What I do:

In toolbox, right click, then components, select "Microsoft Comm Control
6.0", close. A telephone icon becomes visible.
Select this icon and draw it on your form as usual, double click the icon
and you can start programming your application.
For more info about how, look at the website from Microsoft, they give some
useful examples.

Regards

"Tom Hill" <To*****@Sympatico.ca> wrote in message
news:IG*******************@news20.bellglobal.com.. .
I am having trouble using MSComm32.OCX in my VB6 application.
When I attempt to use the set command to create the comm object, like this:
Dim MSComm1 As Object
Set MSComm1 = CreateObject("MSCommLib.MSComm")

the compiler errors-out with the message "Run-time error 429: ActiveX
comonent can't create object".

The online help indicates this problem can be caused when the MSComm32.OCX
control is not registered. However, I used Regedit to check, and the control appears to be registered correctly.
I have also used the Project/Components menu to add this control to my
project, and the control shows up as expected when I use the Object Browser. So, unless I am missing something, the control appears to be installed
correctly.

Any ideas when I can't seem to access this control?

Jul 17 '05 #2
Thanks Mike.
When I tried your way, I got a message that "licence information for this
component not found".
I am wondering if this is because I am using the Learning Edition of VB6,
not the Professional.
Perhaps this control is only licensed with Pro, even though it comes on the
MSDN CD with the Learning Edition.

"Mike" <po*********@hotmail.com> wrote in message
news:40*********************@news.skynet.be...
I'll never did it this way.What I do:

In toolbox, right click, then components, select "Microsoft Comm Control
6.0", close. A telephone icon becomes visible.
Select this icon and draw it on your form as usual, double click the icon
and you can start programming your application.
For more info about how, look at the website from Microsoft, they give some useful examples.

Regards

"Tom Hill" <To*****@Sympatico.ca> wrote in message
news:IG*******************@news20.bellglobal.com.. .
I am having trouble using MSComm32.OCX in my VB6 application.
When I attempt to use the set command to create the comm object, like

this:

Dim MSComm1 As Object
Set MSComm1 = CreateObject("MSCommLib.MSComm")

the compiler errors-out with the message "Run-time error 429: ActiveX
comonent can't create object".

The online help indicates this problem can be caused when the MSComm32.OCX control is not registered. However, I used Regedit to check, and the

control
appears to be registered correctly.
I have also used the Project/Components menu to add this control to my
project, and the control shows up as expected when I use the Object

Browser.
So, unless I am missing something, the control appears to be installed
correctly.

Any ideas when I can't seem to access this control?


Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: André Gasser | last post by:
hello newsgroup, I just discovered a weird effect in my php code. here is the flow of my code: 1. upload jepg file to server 2. create new (empty) jpeg file using imagecreatefromjpeg()...
4
by: bmiras | last post by:
I've got a problem using urllib2 to get a web page. I'm going through a proxy using user/password authentification and i'm trying to get a page asking for a HTTP authentification. And I'm using...
1
by: Sue | last post by:
I want to deploy a Visual studio.net windows application. This application uses MSCOMM32.OCX control. This application works fine on a development machine. However, if I deploy it on a...
4
by: Derek Timothy | last post by:
Hi folks I have strange problem using cmd.exe from asp code I am trying to save the results of an FTP command into a text file. When I run this command from the command line of the web server it...
3
by: Jacky Zhu | last post by:
Hi all, I am having a problem trying to consume a webservice that is developed on ..Net. I can access it without any problem using a .net client, but when I use a java client (based on Axis...
4
by: Dani | last post by:
Hi everyone Description of the problem: Using a PreparedStatement to write down an integer (int) plus a timestamp for testing purposes. When read out again the integer looks very different. We...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
3
by: Franky | last post by:
Been having a problem using a treeview. Work great the first time the form containing it is entered but not the second time. Took a while to create a small sample that exhibits the problem, but...
3
by: presencia | last post by:
Hi all, I have a problem using gdb. I am using Eclipse-CDT as a frontend, but since this problem is obviously related to the gcc compiler or the gdb itself, I have reproduced it without Eclipse. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.