Results 1 to 10 of 10

Thread: BS2/VB connection problem

  1. #1

    Default 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
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

  2. #2

    Default

    > 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
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

  3. #3

    Default

    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 [mailto:astumpf999@y...]
    > Sent: Friday, January 09, 2004 3:55 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [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/
    >
    >
    >
    >
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

  4. #4

    Default

    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
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

  5. #5

    Default

    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 [mailto:astumpf999@y...]
    Sent: Friday, January 09, 2004 8:55 PM
    To: basicstamps@yahoogroups.com
    Subject: [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/
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

  6. #6

    Default

    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 [mailto:astumpf999@y...]
    > Sent: Friday, January 09, 2004 8:55 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [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/
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

  7. #7

    Default

    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 [Apply].

    -- Jon Williams
    -- Parallax


    -----Original Message-----
    From: astumpf999 [mailto:astumpf999@y...]
    Sent: Saturday, January 10, 2004 12:49 PM
    To: basicstamps@yahoogroups.com
    Subject: [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 [mailto:astumpf999@y...]
    > Sent: Friday, January 09, 2004 8:55 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [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....
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

  8. #8

    Default

    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 [mailto:astumpf999@y...]
    Sent: Saturday, January 10, 2004 12:49 PM
    To: basicstamps@yahoogroups.com
    Subject: [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 [mailto:astumpf999@y...]
    > Sent: Friday, January 09, 2004 8:55 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [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/
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

  9. #9

    Default

    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
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

  10. #10

    Default

    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
    Last edited by ForumTools; 09-30-2010 at 12:05 PM. Reason: Forum Migration

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts