• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

some more compile problems....

Hello. I get some problems here when comiling a program I downloaded from the net. ( http://www.codeproject.com/library/GomzyHTMLReader.asp )

Error      4      error C2679: binary '[' : no operator found which takes a right-hand operand of type 'const char [13]' (or there is no acceptable conversion)      litehtmlattributes.h      92      

This is line 92:
_namedColors["activeborder"]            = (COLORREF)0x8000000A;

What can it be?
1 Solution
You created Unicode project, add _T or L prefix to every string constant:

_namedColors[_T("activeborder")]          = (COLORREF)0x8000000A;
_namedColors[L"activeborder"]          = (COLORREF)0x8000000A;

Other way - don't use Unicode:
Project - Properties - Configuration Properties - General - Character set. Set "Use Mutli-byte character set".

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now