Eric Pouech pouech-eric@wanadoo.fr writes:
the (const WCHAR[]){'T','e','x','t'} (don't forget the trailing '\0') is the preferred. We all know it's a PITA, but it's better to put the constraint once, at code writing time.
Note that the (const WCHAR[]) cast is not portable, so you shouldn't use that. You need to declare a real array of WCHARs.