LPCWSTR name;
name += TEXT(".png");

produces:'+=' : illegal, right operand has type 'const wchar_t [5]'

I want to have .png appended to the name string.
Anyone know how to fix it?

Think about what an LPCWSTRING is...
The example 2 lines what you give does not really make sense to do, it may help if you give some more information on what you want to do.
Most importantly: Where does 'name' come from

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.