CString Replace Questions...HELP!

Discussion in 'Programming' started by nextebizguy, Jun 14, 2008.

  1. #1
    Hey all,

    I can't get this code line to work correctly.

    ForumSearchText.Replace('"', '%22');

    I want to search the user input text and replace each occurrence of " with %22 for some URL strings. I'm using Visual C++. How do you make it replace with %22?

    Thanks!
     
    nextebizguy, Jun 14, 2008 IP
  2. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #2
    I am WIN32 API programmer but this seems MFC to me.

    try enquotig %22 in double quotes not single, as
    regards
     
    Vooler, Jun 17, 2008 IP