Is it really exactly the same string? Have you UNICODE problems? What type is szSubBlocks and how is it initialized? Have you the line
#define UNICODE
somewhere?