Tuesday, January 11, 2005

The Microsoft COM hell

In my current project we have a short release which involves writing addins for Microsoft components like Word, Excel Outlook etc.. It might sound cool until you actually get into writing some COM interop code.

There are some funny things you might need to do when you are calling a class in another namespace from your office addin, i.e doing an interop.

  • Firstly you need to have a Guid for identifiying the interop class. This apparently is used for registering this class as an interop in the registry
  • Secondly you need to set a property at the project level in VS.net, "Register for COM interop = true".
  • If you are using an installer , the you need to make sure that in the properties of this project , you have the property "Register" set to "vsdraCOM".

If that is not enough, if you do not do any of the above, you do not get any pretty error messages that tell you to do so. Your addin might just stop working all of a sudden or will work on one box and stop working on the other. Hmpf!!

To add to all this, the documentation for COM is really pathetic , even in MSDN. The best resource for you are blogs of those unfortunate developers , who have suffered the pain and agony of working with Microsoft components


Clickbank Mall said...

Nice blog. Have you seen your google rating? BlogFlux It's Free and you can add a Little Script to your site that will tell everyone your ranking. I think yours was a 3. I guess you'll have to check it out.

Computer News
Google plans instant-messaging system, report says

Google Inc. is set to introduce its own instant messaging system, the Los Angeles Times reported on Tuesday, marking the expansion by the Web search leader into text and also voice communications.

Citing unnamed sources "familiar with the service," the Los Angeles Times said that Google's Instant Messaging program would be called Google Talk and could be launched as early as Wednesday.

Google Talk goes beyond text-based instant messaging using a computer keyboard to let users hold voice conversations with other computer users, the newspaper quoted a source as saying.

A Google spokeswoman declined to comment on the company's product plans.

If confirmed, the combined computer text and voice-calling service would put Google in competition with a similar service pioneered by Skype, which has attracted tens of millions of users, especially in Europe, to its own service.

Separately, independent journalist Om Malik on his blog at http://gigaom.com/ pointed to technical clues that suggest Google is preparing to run an instant messaging service based on an open-source system known as Jabber.

Jabber technology would allow Google instant message users to connect with established IM systems that also work with Jabber, including America Online's ICQ and Apple Computer Inc.'s iChat, Malik said.

"This is the worst possible news for someone like Skype, because now they will be up against not two but three giants who want to offer a pale-version of Skype," he wrote.

Earlier this week, Google said it was branching out beyond pure search to help users manage e-mail, instant messages, news headlines and music. It introduced a new service called the Google Sidebar, a stand-alone software program that sits on a user's desktop and provides "live" information updates.

Over the past year or so, the company has expanded into e-mail, online maps, personalized news and more.

The product push comes as rivals Yahoo Inc., Microsoft Corp. and Time Warner Inc.'s AOL are all pushing to upgrade existing instant messaging systems and expand into new Internet phone-calling services.

Google's moves take it beyond its roots in Web search and closer to becoming a broad-based Internet media company.

With instant messaging, Google would be breaking into a market in which its major competitors boast tens of millions of subscribers to their established instant messaging services.

America Online, with its AIM and ICQ brands, counts more than 40 million IM users in the United States alone. Yahoo has around 20 million and Microsoft's MSN Messenger numbers some 14 million users, according to recent comScore Media Metrix data.

Copyright © - 2005 Entireweb


Mary Brown said...

I have read your blog its very attractive and impressive. I like it your blog.

Dot Net Training in Chennai Dot Net Training in Chennai .Net Online Training .Net Online Training Dot Net Training in Chennai

Dot Net Online Training .Net Online Training ASP.NET Online Training ASP.NET Online Training