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;
*/
// Fill in the BROWSEINFO structure.
- wxWX2MBbuf message = m_message.mb_str();
bi.hwndOwner = hWnd;
bi.pidlRoot = NULL; // pidlPrograms;
bi.pszDisplayName = lpBuffer;
- bi.lpszTitle = (const char*)message; // 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;