PRB: Error C2259 on "char" Type Redefinition in Visual C++ ATL Project
Article ID: 201094
Article Last Modified on 12/2/2003
APPLIES TO
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
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
Additional query words: kbDSupport kbdss
Keywords: kbbug kbnoupdate kbprb kbpending kbcompiler KB201094