Problem with empty strings in the XP SmartTag PIA

S

Soulman

I’m trying to write SmartTags for Office XP using managed code (I’m using C#) and I’m running into problems using the SmartTag property bag (ISmartTagProperties). Specifically passing or receiving an empty/null string generates a ComException.
If I try to pass an empty string (or null) to ISmartTagProperties.Write (in order to delete a key value pair) I get "The parameter is incorrect.". If I try to read a nonexistent key (according to the documentation I should get Null) I get "Unspecified error". It seems to me that the official PIA just isn’t up to scratch, should I just generate and tweak my own COM wrapper? This is really frustrating!

James
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top