[Last Call] Learn how to a build a cloud-first strategyRegister Now


Adding to pointer

Posted on 2005-05-17
Medium Priority
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
  • 2
LVL 55

Expert Comment

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

Author Comment

ID: 14020909
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

AlexFM earned 2000 total points
ID: 14024781
String* msg = String::Concat("LIST|", userList(), "\r\n");

Author Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month17 days, 18 hours left to enroll

831 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