comutil.h bug in VC++ 7.1

  • Thread starter Thread starter d stokes
  • Start date Start date
D

d stokes

Am I the only person that has compiled COM code with VC++
7.1?? There seems to be some bugs in comutil.h, causing
quite a few errors when comdef.h is included (even if
there are no other files).

Apparently all references to wchar_t* have been changed
to LPWSTR. This causes problems everywhere where a const
LPWSTR is used, as this is equivalent to wchar_t* const
and not the original const wchar_t*. It causes errors
with any code like (LPWSTR)_bstr_t("...") or (BSTR)_bstr_t
("...").

Anyway, I've found no reference to this on MSDN.

I'd also like to know how one submits a simple bug report
to MS. Although there's a reference to "submit a bug
report" on the MSDN contacts page, I can find no way of
actually doing it.
 
d said:
Am I the only person that has compiled COM code with VC++
7.1?? There seems to be some bugs in comutil.h, causing
quite a few errors when comdef.h is included (even if
there are no other files).

Could you post a specific example? On a cursory look, I only see a single
occurrence of "LPWSTR" in comutil.h, and that's in a comment.
Apparently all references to wchar_t* have been changed
to LPWSTR. This causes problems everywhere where a const
LPWSTR is used, as this is equivalent to wchar_t* const
and not the original const wchar_t*. It causes errors
with any code like (LPWSTR)_bstr_t("...") or (BSTR)_bstr_t
("...").

Anyway, I've found no reference to this on MSDN.

I'd also like to know how one submits a simple bug report
to MS. Although there's a reference to "submit a bug
report" on the MSDN contacts page, I can find no way of
actually doing it.

Normally posting here is sufficient as the VC team regularly monitors this
newgroup (and many others).

-cd
 
Back
Top