?
Solved

some more compile problems....

Posted on 2006-04-17
1
Medium Priority
?
236 Views
Last Modified: 2010-04-24
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?
0
Comment
Question by:m-jansen
1 Comment
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 16469300
You created Unicode project, add _T or L prefix to every string constant:

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

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

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question