I know I'm being a bit anal, but if you are going to _T and TCHAR, then you need to write you app to build in both ANSI and UNICODE. Your code gives the impression that it might build in ANSI but it in fact will not work. To make your code work in both ansi and UNICODE TCHAR tChar[255]; _stprintf(tChar,_T("%ls"),(LPCWSTR)bstrName); // then print
Tim Smith I'm going to patent thought. I have yet to see any prior art.