Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Change Line wth CComBSTR

Posted on 2006-05-28
Medium Priority
Last Modified: 2008-01-16

i have a very easy problem but im having a hard time finding a solution.
Im using CComBSTR wrapper to concatenate BSTRs, but i dont want them all in the same line because im buiding an html file.


i dont want  <html><body></body></html>

How can i add a new line so i can get:


Question by:andreof
  • 3
LVL 49

Accepted Solution

DanRollins earned 750 total points
ID: 16781323
Add some CRLF (line breaks).  For instance:

          var.Append("<html>\r\n");    // note the \r\n that I have added.

-- Dan
LVL 49

Expert Comment

ID: 16786568
Out of curiosity....
I believe I answered your question correctly.  Why did you decide to give me a "B" instead of an "A"?   How could I have answered this question any more correctly?

Please see:
   Waht's the right grade to give?

Author Comment

ID: 16788010
well it was the first grade i gave, so i was with doubts.

1. Your answer was correct and helped me a lot, thank you!

2. I didn't know it, but you have to agree it was a very simple question, and i dont think that ANY answer to this question would be in A category:

A: The Expert(s) either provided you with a thorough answer or they provided you with a link to information that thoroughly answered your question. An "A" can also be given to any answer that you found informative or enlightening beyond the direct question that you asked.

3. 250 points for this one was a great deal ;)

Sorry if you feel its unfair but it seemed to me as the right thing to do.

Regards and thanks
LVL 49

Expert Comment

ID: 16792448
Of course, the grading is up to the Asker (and I won't have any more to say on this), but just so you know:

I, and most EE Experts, would rather get an "A" on a 100-pt question than a "B" on a 500-pt Q.

As the grading guidelines indicate:
If his answer is correct and complete, it deserves an "A".  When you think that an answer is less than complete, you should say so in a comment -- give the Expert a chance to improve upon his reponse.  If he does not, then a "B" may be justified.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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…
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…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses

580 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