debugging vb6

Discussion in 'AutoCAD' started by perry, Jun 26, 2004.

  1. perry

    perry Guest

    Now that Im pretty comfortable with Vba, Im porting my app over to VB6
    my first problem with that is debugging, how do you do it?
    Are there any docs anywhere with procedures for debugging VB6 .dll's?
    Thats one of the nice things about VBA is instant feedback right in the
    drawing editor!
     
    perry, Jun 26, 2004
    #1
  2. Did you search? (Watch for word wrap)

    http://www.google.com/groups?as_q=d...as_maxd=25&as_maxm=6&as_maxy=2004&safe=images

    --
    R. Robert Bell


    Now that Im pretty comfortable with Vba, Im porting my app over to VB6
    my first problem with that is debugging, how do you do it?
    Are there any docs anywhere with procedures for debugging VB6 .dll's?
    Thats one of the nice things about VBA is instant feedback right in the
    drawing editor!
     
    R. Robert Bell, Jun 26, 2004
    #2
  3. perry

    perry Guest

    Well, I did do a search in this NG but didnt come up with any of this, my
    search on google gave me tons of irrevelant stuff but that
    was probably due to improper search criteria.
    Thanks Robert
    (helluva url you got there!)
    Perry
     
    perry, Jun 26, 2004
    #3
  4. Happy to help. Amazing what google can squeeze on there, eh?!

    --
    R. Robert Bell


    Well, I did do a search in this NG but didnt come up with any of this, my
    search on google gave me tons of irrevelant stuff but that
    was probably due to improper search criteria.
    Thanks Robert
    (helluva url you got there!)
    Perry
     
    R. Robert Bell, Jun 26, 2004
    #4
  5. perry

    Dave Guest

    Perry,

    Give me a call. I will be happy to set you right up with a simple test.dvb
    that you can debug your dll code with.

    Basically, you load the arx's in ACAD that you need. Note that some cannot
    run in design time. You also load the test.dvb. You hit play in your vb6
    editor and then in the ACAD vba test.dvb you browse to the vbp file that is
    currently running. It will now work. Anytime you close the project you will
    have to reference it. Sometimes you have to do it again and again in a
    session depending on whether or not you are working databases and that type
    of thing.

    I'm here, so let me know if you need help.

    --
    David Wishengrad
    President & CTO
    MillLister, Inc.
    Software for BOM, measuring, stretching and controlling visibility of
    multiple 3D solids.
    Http://Construction3D.com
     
    Dave, Jun 27, 2004
    #5
  6. Dave, that is more work than it needs to be. All the debugging can be
    performed directly in VB6's IDE.

    --
    R. Robert Bell


    Perry,

    Give me a call. I will be happy to set you right up with a simple test.dvb
    that you can debug your dll code with.

    Basically, you load the arx's in ACAD that you need. Note that some cannot
    run in design time. You also load the test.dvb. You hit play in your vb6
    editor and then in the ACAD vba test.dvb you browse to the vbp file that is
    currently running. It will now work. Anytime you close the project you will
    have to reference it. Sometimes you have to do it again and again in a
    session depending on whether or not you are working databases and that type
    of thing.

    I'm here, so let me know if you need help.

    --
    David Wishengrad
    President & CTO
    MillLister, Inc.
    Software for BOM, measuring, stretching and controlling visibility of
    multiple 3D solids.
    Http://Construction3D.com
     
    R. Robert Bell, Jun 27, 2004
    #6
  7. perry

    Dave Guest

    Well, I believe it. It is the only way I know. It was set up for me this
    way. I think it has something to do with our particular project. I seem to
    remember us doing it without loading a dvb in ACAD that caled the class
    module at first, but for some reason that escapes me at this time, it is now
    gone.

    --
    David Wishengrad
    President & CTO
    MillLister, Inc.
    Software for BOM, measuring, stretching and controlling visibility of
    multiple 3D solids.
    Http://Construction3D.com
     
    Dave, Jun 27, 2004
    #7
  8. perry

    Dave Guest

    Then again, you may be misunderstanding what I am saying due to my lack of
    expertise and the ability to clearly explain what I mean. It is late here
    right now, so I am off to bed. I would love to discuss this further in the
    future. Real quick, in a nut shell, the test.dvb we use only allows the user
    to issue a command that calls the vbp class module. All the debugging is
    still done within vb6 vbp and its source files. If you have a better way, I
    am all ears!. This procedure we use can really be a pain in rear at times!

    --
    David Wishengrad
    President & CTO
    MillLister, Inc.
    Software for BOM, measuring, stretching and controlling visibility of
    multiple 3D solids.
    Http://Construction3D.com
     
    Dave, Jun 27, 2004
    #8
  9. perry

    Dave Guest

    That is a cool approach. I have never seen it done like that. I will give
    it in my next coding session.

    Thanks a bunch for sharing that.

    --
    David Wishengrad
    President & CTO
    MillLister, Inc.
    Software for BOM, measuring, stretching and controlling visibility of
    multiple 3D solids.
    Http://Construction3D.com
     
    Dave, Jun 27, 2004
    #9
  10. I've always just changed the debugging properties to wait for an object to
    be created then hit the "play" button.

    Then I use VLISP or VBA to create an instance of my server and test it.

    Runtime errors automatically break in the VB IDE and breakpoints are honored
    as well.
     
    Frank Oquendo, Jun 28, 2004
    #10
  11. perry

    perry Guest

    Well, I appreciate ALL the help and pointers I can get here!
     
    perry, Jun 28, 2004
    #11
  12. perry

    perry Guest

    Quite allright Robert, hope you had a great trip! sounds like you been
    married about as long as I have.
    Arent those "woods" down there in Calif getting kinda crowded?

    Anyway, when I try to set a reference to the original dll PROJECT, I just
    get error messages saying that
    it cannot set a reference to that file.
    This is getting quite frustrating :(
    Thanks for the help, Perry
     
    perry, Jul 1, 2004
    #12
  13. Where did you get the idea it was in CA? %^)

    Let's try this again... <vbg>

    Did you have the debugging standard .exe project selected when you attempted
    to add the .dll's project as a reference?


    --
    R. Robert Bell


    Quite allright Robert, hope you had a great trip! sounds like you been
    married about as long as I have.
    Arent those "woods" down there in Calif getting kinda crowded?

    Anyway, when I try to set a reference to the original dll PROJECT, I just
    get error messages saying that
    it cannot set a reference to that file.
    This is getting quite frustrating :(
    Thanks for the help, Perry
     
    R. Robert Bell, Jul 7, 2004
    #13
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 (here). After that, you can post your question and our members will help you out.