Solved

how to url encode a string?

Posted on 2000-03-27
2
546 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 103
deburging in oracle form 12 99
NotAlone Challenge 20 84
My project did see openJDK that I installed. What could be the problem 7 143
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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