DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Vlad Ivanov Guest

    Wishlist Item i'd kill for :)


    How is that for a wish list item:

    PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i don't
    care) OF THE OBJECT THAT FAILED!!!! DAMNIT!

    Heheh I start to shake when i am testing my installs and i get one of
    those "Activex component cannot create object". Which one? Where? What line?!
    I mean how difficult it is for a freaking COM layer to return the **** ProgId!!!!
    If it is not in VB7 i'll probably move on to some other way of earning a
    living. Gardening... Flower arrangements or something...

    I am perfectly aware of importance of error handlers blah blah.. The fact
    is that almost every VB is built from all kinds of COM components and this
    feature would be a natural one would expect to be there!!!

    You can see that i am all worked up now Ok i'll stop.

  2. #2
    Darin Darin Guest

    Re: Wishlist Item i'd kill for :)


    "Vlad Ivanov" <vivanov@polarisconsulting.com> wrote:
    >
    >How is that for a wish list item:
    >
    >PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i don't
    >care) OF THE OBJECT THAT FAILED!!!! DAMNIT!



    I agree 100% but you can actually roll your own right now. Create a BAS module,
    put a function in it called CreateObject() that duplicates the syntax of
    CreateObject exactly, write code that just performs a create object call,
    and error trap it. Your createobject will override vb's version. Be sure
    to use VBA.CreateObject in your function instead of just CreateObject (or
    you'll end up in a tight recursion!)

    Then raise an error that includes the Passed in PROGID in the err.description.

    I saw this in a tech tip, I think. **** handy and it almost takes care of
    the whole problem (it won't handle objects created with the NEW operator,
    though I suppose you could wrap those requests as well, but with more work)

  3. #3
    Keith Primeaux Guest

    Re: Wishlist Item i'd kill for :)

    Vlad,

    I'm not sure if this is exactly what you're looking for or not, but check
    out: http://www.addisonsw.com/ . I've never used their software, but I
    stumbled across their website many months ago when I was searching for
    something unrelated. The Reveal software may be of help to you while you
    wait for your wish list item.

    Best of luck,
    KP



    Vlad Ivanov <vivanov@polarisconsulting.com> wrote in message
    news:38ccecdc$1@news.devx.com...

    > How is that for a wish list item:
    >
    > PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i

    don't
    > care) OF THE OBJECT THAT FAILED!!!! DAMNIT!





  4. #4
    Steve Cochran Guest

    Re: Wishlist Item i'd kill for :)

    My peeve is the one that says "An unexpected error has occured." That's
    all.

    <G>

    steve

    "Vlad Ivanov" <vivanov@polarisconsulting.com> wrote in message
    news:38ccecdc$1@news.devx.com...
    >
    > How is that for a wish list item:
    >
    > PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i

    don't
    > care) OF THE OBJECT THAT FAILED!!!! DAMNIT!
    >
    > Heheh I start to shake when i am testing my installs and i get one of
    > those "Activex component cannot create object". Which one? Where? What

    line?!
    > I mean how difficult it is for a freaking COM layer to return the ****

    ProgId!!!!
    > If it is not in VB7 i'll probably move on to some other way of earning a
    > living. Gardening... Flower arrangements or something...
    >
    > I am perfectly aware of importance of error handlers blah blah.. The fact
    > is that almost every VB is built from all kinds of COM components and this
    > feature would be a natural one would expect to be there!!!
    >
    > You can see that i am all worked up now Ok i'll stop.



  5. #5
    Vlad Ivanov Guest

    Re: Wishlist Item i'd kill for :)


    Thank you Keith!!! I am looking at it right now and it looks VERY promising!
    It's always the tool you need is the one you never heard of! Even though
    believe me i was looking

    "Keith Primeaux" <keithp@automatedfilingsystems.com> wrote:
    >Vlad,
    >
    >I'm not sure if this is exactly what you're looking for or not, but check
    >out: http://www.addisonsw.com/ . I've never used their software, but I
    >stumbled across their website many months ago when I was searching for
    >something unrelated. The Reveal software may be of help to you while you
    >wait for your wish list item.
    >
    >Best of luck,
    >KP
    >
    >
    >
    >Vlad Ivanov <vivanov@polarisconsulting.com> wrote in message
    >news:38ccecdc$1@news.devx.com...
    >
    >> How is that for a wish list item:
    >>
    >> PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i

    >don't
    >> care) OF THE OBJECT THAT FAILED!!!! DAMNIT!

    >
    >
    >



  6. #6
    Mike Mitchell Guest

    Re: Wishlist Item i'd kill for :)

    On Tue, 14 Mar 2000 08:33:21 -0500, "Steve Cochran"
    <scochran@chattanooga.net> wrote:

    >My peeve is the one that says "An unexpected error has occured." That's
    >all.
    >

    Can't we have an error trap which Tries to Catch Finally the entire
    contents of a user's brain? (You'd only need a few bytes for
    storage...)

    How many times have users reported a problem which, on examination,
    bears no relation whatsoever to the actual bug?

    If there were no users, we'd have no bugs, and life would be so sweet!

    MM

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
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links