PRB: Error C2259 on "char" Type Redefinition in Visual C++ ATL Project (201094)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q201094 SYMPTOMS
Compiling a Visual C++ ActiveX Template Library (ATL) Project may result in the Visual C++ compiler error C2259. This problem can occur when a parameter of type char is not qualified as signed char or unsigned char.
RESOLUTION
A workaround for this problem is to qualify "char" parameters as either "unsigned char" or "signed char."
REFERENCES
For more information, see the following article in the Microsoft Knowledge Base:
193471 DOC: MIDL /char Switch Does Not Behave as Expected
Modification Type: | Major | Last Reviewed: | 12/2/2003 |
---|
Keywords: | kbBug kbCompiler kbNoUpdate kbpending kbprb KB201094 |
---|
|