Asger Ottar Alstrup wrote:
> But the problem is that I can not make diffs for some reason. It just
> hangs and hangs. Does anybody else experience this problem? CVS is soo
> slow today.

What CVS client do you use? I've been using TortoiseCVS and it seems to
work well.


I have a question for you now, as my resident Windows knowledge base ;-)

In this nastiness below, I tried to convert a LPTSTR object to an LPCSTR
one so that I could add it to a larger string.

However, I find that
1. I can't because the T2CA macro is an AFX thingie and I don't have that
installed.
2. I don't need to anyway, because LPTSTR is already char-based.

When is LPTSTR wchar_t-based and what would I need to do were that the
case?

  // WaitForSingleObject failed
  DWORD const error_code = ::GetLastError();

  LPVOID t_message;
  ::FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
    FORMAT_MESSAGE_FROM_SYSTEM,
    0, error_code,
    MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
    (LPTSTR) &t_message, 0, 0);

  // Convert the message to a char-based string.
//  LPCSTR c_message = T2CA(t_message);
//  LocalFree(t_message);

  // FIXME Use bformat here!
  string system_message((LPTSTR)t_message);

-- 
Angus

Reply via email to