Adding to pointer

Posted on 2005-05-17
Last Modified: 2010-04-24
How would I add 2 pointers together?

this is what i have:
String *msg = "LIST|" + userList() + "\r\n";

I have looked for refrences to adding pointers on google but really couldnt find any that I understand. Would someone explain to me how I would go about adding 2 pointers?

String *userList()
Question by:fsharer
    LVL 55

    Expert Comment

    by:Jaime Olivares
    Try with:
    String *msg = "LIST|" + userList();
    msg += "\r\n";

    Author Comment

    Still is giving me the same error, but also is telling me the right operand is illegal, and can not perform pointer arithmetic on __gc pointer String
    LVL 48

    Accepted Solution

    String* msg = String::Concat("LIST|", userList(), "\r\n");

    Author Comment

    Thanks, I figured it out yesterday, and I was going o confirm today, and made the confirmation!

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    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…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    729 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

    14 Experts available now in Live!

    Get 1:1 Help Now