some more compile problems....

Posted on 2006-04-17
Last Modified: 2010-04-24
Hello. I get some problems here when comiling a program I downloaded from the net. ( )

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?
Question by:m-jansen
    1 Comment
    LVL 48

    Accepted 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".


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    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++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now