Problem using MSComm32.OCX

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom Hill

    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("M SCommLib.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?


  • Mike

    #2
    Re: Problem using MSComm32.OCX

    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" <TomHill@Sympat ico.ca> wrote in message
    news:IG81c.1444 $JZ6.229327@new s20.bellglobal. com...[color=blue]
    > 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[/color]
    this:[color=blue]
    >
    > Dim MSComm1 As Object
    > Set MSComm1 = CreateObject("M SCommLib.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[/color]
    control[color=blue]
    > 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[/color]
    Browser.[color=blue]
    > So, unless I am missing something, the control appears to be installed
    > correctly.
    >
    > Any ideas when I can't seem to access this control?
    >
    >[/color]


    Comment

    • Tom Hill

      #3
      Re: Problem using MSComm32.OCX

      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" <poste_cSPAM@ho tmail.com> wrote in message
      news:404629f8$0 $778$ba620e4c@n ews.skynet.be.. .[color=blue]
      > 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[/color]
      some[color=blue]
      > useful examples.
      >
      > Regards
      >
      > "Tom Hill" <TomHill@Sympat ico.ca> wrote in message
      > news:IG81c.1444 $JZ6.229327@new s20.bellglobal. com...[color=green]
      > > 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[/color]
      > this:[color=green]
      > >
      > > Dim MSComm1 As Object
      > > Set MSComm1 = CreateObject("M SCommLib.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[/color][/color]
      MSComm32.OCX[color=blue][color=green]
      > > control is not registered. However, I used Regedit to check, and the[/color]
      > control[color=green]
      > > 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[/color]
      > Browser.[color=green]
      > > So, unless I am missing something, the control appears to be installed
      > > correctly.
      > >
      > > Any ideas when I can't seem to access this control?
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...