Article View: borland.public.cppbuilder.internet.web
Article #1462Indy 9.0.17, URLEncode
From: Bill D. Pirkle
Date: Wed, 05 Jan 2005 21:47
Date: Wed, 05 Jan 2005 21:47
22 lines
1472 bytes
1472 bytes
Hi all, This is probably a stupid question, but I'm stuck. I'm trying to use URLEncode in Indy 9.0.17 in BCB6. The Indy documentation and examples show it taking only a String, but the actual code also requires a "TMetaClass*". I've tried this: myStr = TIdURI::URLEncode(0, myStr); and myStr = TIdURI::URLEncode(__classid(TIdURI), myStr); Both result in a run time popup message: "Protocol field is empty.". Wrapping things in a "try" block suppresses the popup, so I assume I'm triggering some sort of exception. I've Googled, and it seems that the __classid thing is what I'm supposed to be doing to call OP class routines from C++, and I yelled that at my computer, but it won't listen. ;-) What am I doing wrong? Bill D. Pirkle
Technical Details
Message-ID:
<41dc435f.54129554@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,99de7357efe5ae14,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: mbpirkle@NOSPAM.att.net (Bill D. Pirkle) Newsgroups: borland.public.cppbuilder.internet.web Subject: Indy 9.0.17, URLEncode Date: Wed, 05 Jan 2005 21:47:14 GMT Message-ID: <41dc435f.54129554@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 65.40.100.232 X-Trace: newsgroups.borland.com 1104961640 65.40.100.232 (5 Jan 2005 13:47:20 -0800) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail