Having COM flashbacks — The horror, the horror!

I’m working with one of my peers from Houston today to install a regression testing tool on our local server.  We’re troubleshooting an installation that involves an old, old VB6 COM component that is being called via interop by .Net 1.0 code.  Can you say ouch?  We’re getting the dreaded “Type Mismatch” exception.  I’m seeing, hearing, and doing things I’d hoped never to experience again.

  • “Did you un-register first?”
  • “Can you check the registry to see if the XYZ DLL is registered?”
  • “Can you check the registry to see where the DLL is registered?”
  • “Do you have the right GUID’s?” — As if anybody has ever known the answer to this one.
  • “Is there another copy of this DLL somewhere on the box?”

Just to sum it up, I remember why I love .Net.  XCOPY rules.  I’m going to spend the rest of today trying to forget about this crap.  As soon as we make the COM thing work.


EDIT — The VB6 code uses RDO!!!!!  I’m not old enough to have seen this in the wild before.  I gotta go looking for GOSUB statements now.

About Jeremy Miller

Jeremy is the Chief Software Architect at Dovetail Software, the coolest ISV in Austin. Jeremy began his IT career writing "Shadow IT" applications to automate his engineering documentation, then wandered into software development because it looked like more fun. Jeremy is the author of the open source StructureMap tool for Dependency Injection with .Net, StoryTeller for supercharged acceptance testing in .Net, and one of the principal developers behind FubuMVC. Jeremy's thoughts on all things software can be found at The Shade Tree Developer at http://codebetter.com/jeremymiller.
This entry was posted in Ranting. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
  • KG2V

    You don’t remember RDO in the wild? Newbie :)

    In our shop, do to management shortsightedness – we do a mix of development – and I do mean new fetures etc in:

    VB3 (yeah 16 bit code)
    VB6 (stuck there right now – should be done with this one in a week)
    .Net 2003
    .net 2005


  • jmiller


    That and the stupid “OO is dead! SOA is everything!” commentary is why I don’t pay much attention to Don Box.

  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen

    COM is love (Don Box) He must be a masochist :)
    I feel your pain.