When i try to display a variable trough message box function, the message box comes up, but there is nothing written in it like it supposed to be. Any error in the code?
Code:TCHAR GetString(UINT ID)
{
TCHAR Buffer;
LoadString(GetModuleHandle(NULL), ID, (LPWSTR)Buffer, 60);
return Buffer;
}
...
MessageBox( NULL, (LPCWSTR)GetString(IDS_INVALID_PATH), L"Error", MB_ICONERROR);