this should work
wchar_t d=L'a';
i think it was a typo error...
Now here while you use wchar_t then only one character given similar to a char.
If u want to specify more than one character then use array or allocated memory.
And wchat_t is nothing but .
typedef unsigned short wchar_t;
If u want to give more than one character to it then you can use.
wchar_t* pDataType = new wchar_t[3];
pDataType = L"aa";
or
// Simply copying of the type wchar_t
wchar_t* pData = L"aa";
wchar_t* pCopyData= new wchar_t[3]; // You can copy and use the same.
wcscpy( pCopyData , pData );