Shop OBEX P1 Docs P2 Docs Learn Events
BS2/VB connection problem — Parallax Forums

BS2/VB connection problem

ArchiverArchiver Posts: 46,084
edited 2004-01-12 18:37 in General Discussion
I am working on a data collection project using VB6.0.

When I try to compile my VB program, I get an "Object required" error
for any any "mscomm..." statement. Any help would be appreciated.

Marylou

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-01-09 22:17
    > I am working on a data collection project using VB6.0.
    >
    > When I try to compile my VB program, I get an "Object required" error
    > for any any "mscomm..." statement. Any help would be appreciated.
    >
    > Marylou

    Have you added the MSComm activex control to the project, and dropped
    it on the form?

    Regards,

    -Bruce
    tech@r...
    http://www.rentron.com
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-09 22:28
    Sounds like you need to add MSComm to your project. Go to Projects |
    Components (or Control+T) and see that MSCOMM32.OCX is checked. If you don't
    have it at all, you need to install it or register it. There are some
    replacements referenced at http://www.lvr.com

    Al Williams
    AWC
    *NEW: Universal PCB fits Stamp, SX, more
    http://www.al-williams.com/gpmpu40.htm


    >
    Original Message
    > From: astumpf999 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=k8lN0Ati2d79DszsrkZd9ypS57gQ9bvWlR2QjSfim8EGgmMRWxwoJYUgNDhkekZSzZ8Rzbo6S-I73NvHrSU]astumpf999@y...[/url
    > Sent: Friday, January 09, 2004 3:55 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] BS2/VB connection problem
    >
    >
    > I am working on a data collection project using VB6.0.
    >
    > When I try to compile my VB program, I get an "Object required" error
    > for any any "mscomm..." statement. Any help would be appreciated.
    >
    > Marylou
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Yahoo! Groups Links
    >
    > To visit your group on the web, go to:
    > http://groups.yahoo.com/group/basicstamps/
    >
    > To unsubscribe from this group, send an email to:
    > basicstamps-unsubscribe@yahoogroups.com
    >
    > Your use of Yahoo! Groups is subject to:
    > http://docs.yahoo.com/info/terms/
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-10 02:54
    How do I install or register mscomm32.ocx? I checked it in the
    components box, clicked on the "Apply" button and still get the same
    error message.
    Marylou
    ________________________________

    --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
    > Sounds like you need to add MSComm to your project. Go to Projects |
    > Components (or Control+T) and see that MSCOMM32.OCX is checked. If
    you don't
    > have it at all, you need to install it or register it. There are
    some
    > replacements referenced at http://www.lvr.com
    >
    > Al Williams
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-10 03:04
    Well if it is in the list and checked then I suspect you already have it.
    You could find the ocx and run :

    regsvr32 mscomm32.ocx

    That will cause it to self-register. And you do have it dropped on the form
    with the right name, right? You can see an example, btw, at
    http://www.al-williams.com/stampcom.zip

    Al Williams
    AWC
    *NEW: Universal PCB holds Stamp, SX, more...
    http://www.al-williams.com/gpmpu40.htm


    Original Message
    From: astumpf999 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=t1AH1jASMz0hQwkvelEswKmT3Yid5pyUCeEP4Il7keFlWt5gR-eh8zyMDf1f8M5i6yrzEMd6XVmD-5E]astumpf999@y...[/url
    Sent: Friday, January 09, 2004 8:55 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: BS2/VB connection problem


    How do I install or register mscomm32.ocx? I checked it in the
    components box, clicked on the "Apply" button and still get the same
    error message.
    Marylou
    ________________________________

    --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
    > Sounds like you need to add MSComm to your project. Go to Projects |
    > Components (or Control+T) and see that MSCOMM32.OCX is checked. If
    you don't
    > have it at all, you need to install it or register it. There are
    some
    > replacements referenced at http://www.lvr.com
    >
    > Al Williams



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Yahoo! Groups Links

    To visit your group on the web, go to:
    http://groups.yahoo.com/group/basicstamps/

    To unsubscribe from this group, send an email to:
    basicstamps-unsubscribe@yahoogroups.com

    Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-10 18:49
    Al,

    Thanks for your help. I looked at your program and found the
    mscomm32.ocx object entry. My question is how did it get there or how
    do I "drop it in the form"? Could you get a bit more specific?

    This may be a simple thing to a professional programmer. My only
    previous experience was quickbasic for hobby projects and I find VB
    somewhat overwhelming.

    Marylou
    ______________________________________



    --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
    > Well if it is in the list and checked then I suspect you already
    have it.
    > You could find the ocx and run :
    >
    > regsvr32 mscomm32.ocx
    >
    > That will cause it to self-register. And you do have it dropped on
    the form
    > with the right name, right? You can see an example, btw, at
    > http://www.al-williams.com/stampcom.zip
    >
    > Al Williams
    > AWC
    > *NEW: Universal PCB holds Stamp, SX, more...
    > http://www.al-williams.com/gpmpu40.htm
    >
    >
    >
    Original Message
    > From: astumpf999 [noparse][[/noparse]mailto:astumpf999@y...]
    > Sent: Friday, January 09, 2004 8:55 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: BS2/VB connection problem
    >
    >
    > How do I install or register mscomm32.ocx? I checked it in the
    > components box, clicked on the "Apply" button and still get the
    same
    > error message.
    > Marylou
    > ________________________________
    >
    > --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
    > > Sounds like you need to add MSComm to your project. Go to
    Projects |
    > > Components (or Control+T) and see that MSCOMM32.OCX is checked. If
    > you don't
    > > have it at all, you need to install it or register it. There are
    > some
    > > replacements referenced at http://www.lvr.com
    > >
    > > Al Williams
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    Subject and
    > Body of the message will be ignored.
    >
    >
    > Yahoo! Groups Links
    >
    > To visit your group on the web, go to:
    > http://groups.yahoo.com/group/basicstamps/
    >
    > To unsubscribe from this group, send an email to:
    > basicstamps-unsubscribe@yahoogroups.com
    >
    > Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-10 18:54
    Marylou:

    You must have VB Professional to use the MSComm control in your own
    projects. If you don't have VB pro, you'll need to find an MSComm
    replacement. A couple people have built wrappers around the MSComm
    control do that it could be released and used all users.

    If you do have VB Pro, you can make the MSComm control available to your
    project by going to Porject | Components, then selecting MS Comm Control
    and clicking [noparse][[/noparse]Apply].

    -- Jon Williams
    -- Parallax


    Original Message
    From: astumpf999 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=63-ouDqRVVLjOyMH2tfhyCsOq2jMLYZ4pipipp_rQvWYNBhVjke4UFE-BtZFAqkEZ--Mqp6_xyIx-IM8hpg]astumpf999@y...[/url
    Sent: Saturday, January 10, 2004 12:49 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: BS2/VB connection problem


    Al,

    Thanks for your help. I looked at your program and found the
    mscomm32.ocx object entry. My question is how did it get there or how
    do I "drop it in the form"? Could you get a bit more specific?

    This may be a simple thing to a professional programmer. My only
    previous experience was quickbasic for hobby projects and I find VB
    somewhat overwhelming.

    Marylou
    ______________________________________



    --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
    > Well if it is in the list and checked then I suspect you already
    have it.
    > You could find the ocx and run :
    >
    > regsvr32 mscomm32.ocx
    >
    > That will cause it to self-register. And you do have it dropped on
    the form
    > with the right name, right? You can see an example, btw, at
    > http://www.al-williams.com/stampcom.zip
    >
    > Al Williams
    > AWC
    > *NEW: Universal PCB holds Stamp, SX, more...
    > http://www.al-williams.com/gpmpu40.htm
    >
    >
    >
    Original Message
    > From: astumpf999 [noparse][[/noparse]mailto:astumpf999@y...]
    > Sent: Friday, January 09, 2004 8:55 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: BS2/VB connection problem
    >
    >
    > How do I install or register mscomm32.ocx? I checked it in the
    > components box, clicked on the "Apply" button and still get the
    same
    > error message.
    > Marylou
    > ________________________________
    >
    > --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
    > > Sounds like you need to add MSComm to your project. Go to
    Projects |
    > > Components (or Control+T) and see that MSCOMM32.OCX is checked. If
    > you don't
    > > have it at all, you need to install it or register it. There are
    > some
    > > replacements referenced at http://www.lvr.com
    > >
    > > Al Williams
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    Subject and
    > Body of the message will be ignored.
    >
    >
    > Yahoo! Groups Links
    >
    > To visit your group on the web, go to:
    > http://groups.yahoo.com/group/basicstamps/
    >
    > To unsubscribe from this group, send an email to:
    > basicstamps-unsubscribe@yahoogroups.com
    >
    > Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.


    Yahoo! Groups Links

    To visit your group on the web, go to:
    http://groups.yahoo.com/group/basicstamps/

    To unsubscribe from this group, send an email to:
    basicstamps-unsubscribe@yahoogroups.com

    Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-10 19:29
    Yes, when you add the component it should show up on your palette. Then just
    double click it to put one on the form (or drag it out like a button, but it
    will stay the same size). This control only shows up at design time not run
    time.

    If you need a replacement, look at http://www.lvr.com for more.

    Regards,

    Al Williams
    AWC
    * Easy RS232 Prototyping
    http://www.al-williams.com/rs1.htm


    Original Message
    From: astumpf999 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Kmvi6pSw3tbnOC_L43rrn2eOvHZnYDYjgJg0HMPJ6rRQcA61Ow-K6RFOc9uFQw8W5vWMh-CR2YUVtqrw]astumpf999@y...[/url
    Sent: Saturday, January 10, 2004 12:49 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: BS2/VB connection problem


    Al,

    Thanks for your help. I looked at your program and found the
    mscomm32.ocx object entry. My question is how did it get there or how
    do I "drop it in the form"? Could you get a bit more specific?

    This may be a simple thing to a professional programmer. My only
    previous experience was quickbasic for hobby projects and I find VB
    somewhat overwhelming.

    Marylou
    ______________________________________



    --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
    > Well if it is in the list and checked then I suspect you already
    have it.
    > You could find the ocx and run :
    >
    > regsvr32 mscomm32.ocx
    >
    > That will cause it to self-register. And you do have it dropped on
    the form
    > with the right name, right? You can see an example, btw, at
    > http://www.al-williams.com/stampcom.zip
    >
    > Al Williams
    > AWC
    > *NEW: Universal PCB holds Stamp, SX, more...
    > http://www.al-williams.com/gpmpu40.htm
    >
    >
    >
    Original Message
    > From: astumpf999 [noparse][[/noparse]mailto:astumpf999@y...]
    > Sent: Friday, January 09, 2004 8:55 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: BS2/VB connection problem
    >
    >
    > How do I install or register mscomm32.ocx? I checked it in the
    > components box, clicked on the "Apply" button and still get the
    same
    > error message.
    > Marylou
    > ________________________________
    >
    > --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
    > > Sounds like you need to add MSComm to your project. Go to
    Projects |
    > > Components (or Control+T) and see that MSCOMM32.OCX is checked. If
    > you don't
    > > have it at all, you need to install it or register it. There are
    > some
    > > replacements referenced at http://www.lvr.com
    > >
    > > Al Williams
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    Subject and
    > Body of the message will be ignored.
    >
    >
    > Yahoo! Groups Links
    >
    > To visit your group on the web, go to:
    > http://groups.yahoo.com/group/basicstamps/
    >
    > To unsubscribe from this group, send an email to:
    > basicstamps-unsubscribe@yahoogroups.com
    >
    > Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Yahoo! Groups Links

    To visit your group on the web, go to:
    http://groups.yahoo.com/group/basicstamps/

    To unsubscribe from this group, send an email to:
    basicstamps-unsubscribe@yahoogroups.com

    Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-12 14:58
    In the 'Files' section, see AlDemo\BS2_VBDemo.zip

    This file has:
    1. A complete example, both VB side and BS2 side.
    2. A 'readme.txt' file, which tells you how to
    create the application on VB from scratch.

    See the .TXT file for exact drag-and-drop instructions
    on how to use the MSCOMM control. It DOES assume
    you have the VB5 PRO or VB6 PRO versions.

    --- In basicstamps@yahoogroups.com, "astumpf999" <astumpf999@y...>
    wrote:
    > I am working on a data collection project using VB6.0.
    >
    > When I try to compile my VB program, I get an "Object required"
    error
    > for any any "mscomm..." statement. Any help would be appreciated.
    >
    > Marylou
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-12 18:37
    Thanks guys for all the help. My stamp is now talking to VB!

    Marylou
    ______________________

    --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    wrote:
    > In the 'Files' section, see AlDemo\BS2_VBDemo.zip
    >
    > This file has:
    > 1. A complete example, both VB side and BS2 side.
    > 2. A 'readme.txt' file, which tells you how to
    > create the application on VB from scratch.
    >
    > See the .TXT file for exact drag-and-drop instructions
    > on how to use the MSCOMM control. It DOES assume
    > you have the VB5 PRO or VB6 PRO versions.
    >
    > --- In basicstamps@yahoogroups.com, "astumpf999" <astumpf999@y...>
    > wrote:
    > > I am working on a data collection project using VB6.0.
    > >
    > > When I try to compile my VB program, I get an "Object required"
    > error
    > > for any any "mscomm..." statement. Any help would be appreciated.
    > >
    > > Marylou
Sign In or Register to comment.