International keyboard layout handling

In the Outlook add-in project I'm working on there is a feature that if the users enters '@' character in the body of mail editor window a dropdown popup will show with some options.
Because this feature is on Outlook window we implemented the feature by capturing keyboard events1 and waiting for "shift + 2" keycode. We check for "shift + 2" because the captured windows keyboard message contains keycode and not the actual character.
In a beta phase an European client reported that this functionality doesn't work, a quick session with the client revealed he used European keyboard layout, something new to me as I used to US keyboard layout.
Continue reading

When does RCW reference count is incremented?

I recently encountered a fun bug in Outlook addin I'm working on and it was interesting enough that I decided to create a few posts around what caused it, it will probably be 3 blogs starting with RCW reference count stuff, continuing with anonymous delegates and finishing the the bug itself.
Disclaimer: this post is based on a similar stackoverflow question I answered a while ago.
Continue reading

My first post

This is my first blog, so let me introduce myself. My name is Arthur Teplitzki and I am currently a software developer at Jive Software. I'm part of a very small team working on developing an Outlook Add-in.
The reason I decided to start a blog is that sometimes I run into problems, problems that turns to be hard problems, problems that take me a lot of time to solve. All because I didn't find anyone else out there that faced the same problem and wrote about it. So I decided to help the next guy, if some poor fellow will find my blog and it will save him some headache, I will be a happy blogger.
I don't work on infrastructure, framework or cutting edge crap so my posts will be down to earth dev problems I encounter. And because I love to dig deep to know the soft underbelly of the problem I can write something interesting about it. That said I don't always find the best solution or the source of the problem, I'm just human, so always read it with a grain of salt.