Solved

how to url encode a string?

Posted on 2000-03-27
2
522 Views
Last Modified: 2013-11-20
Does anyone know the simplest way to URL encode a CString?

I need to pass in the text "hello world".  This will create a url like:

  www.somewhere.org/file.html/?hello+world

Is there an mfc function I can call to url encode a cstring for me?

Thanks for any help,

Tim
0
Comment
Question by:TimB
2 Comments
 
LVL 9

Accepted Solution

by:
ShaunWilde earned 50 total points
ID: 2660212
I don't know about MFC but they are definitely function in the wininet library

have a look at InternetCanonicalizeUrl
0
 
LVL 1

Author Comment

by:TimB
ID: 2747507
Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

17 Experts available now in Live!

Get 1:1 Help Now