Link to home
Start Free TrialLog in
Avatar of andreof
andreof

asked on

Change Line wth CComBSTR

Hello,

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.

example:
            var.Append("<html>");
            var.Append("<body>");
            var.Append("</body>");
            var.Append("</html>");

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

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

                                <html>
            <body>
            </body>
            </html>

ASKER CERTIFIED SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
   https://www.experts-exchange.com/help.jsp#hi73
Avatar of andreof
andreof

ASKER

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