if (m_parent) hWnd = (HWND) m_parent->GetHWND();
BROWSEINFO bi;
- LPSTR lpBuffer;
+ LPTSTR lpBuffer;
// LPITEMIDLIST pidlPrograms; // PIDL for Programs folder
LPITEMIDLIST pidlBrowse; // PIDL selected by user
LPMALLOC pMalloc = NULL;
return wxID_CANCEL;
// Allocate a buffer to receive browse information.
- if ((lpBuffer = (LPSTR) pMalloc->Alloc(MAX_PATH)) == NULL)
+ if ((lpBuffer = (LPTSTR) pMalloc->Alloc(MAX_PATH)) == NULL)
{
pMalloc->Release();
return wxID_CANCEL;
bi.hwndOwner = hWnd;
bi.pidlRoot = NULL; // pidlPrograms;
bi.pszDisplayName = lpBuffer;
- bi.lpszTitle = m_message.mb_str(); // BC++ 4.52 says LPSTR, not LPTSTR?
+ bi.lpszTitle = m_message; // BC++ 4.52 says LPSTR, not LPTSTR?
bi.ulFlags = 0;
bi.lpfn = NULL;
bi.lParam = 0;