Your code apparently is native C++ and uses ATL, so you're definitely in the wrong forum section here. The correct section is this one: http://www.codeguru.com/forum/forumdisplay.php?f=7. I'd suggest to repost your issue there (unless a moderator finds this thread before you do so and moves it). Not only that the folks over there probably have more expertise on this topic, you'll also reach a much larger audience there.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.