Article View: borland.public.cppbuilder.internet.web
Article #598Re: Delphi conversion
From: Remy Lebeau (TeamB)
Date: Thu, 27 Apr 2006 17:07
Date: Thu, 27 Apr 2006 17:07
41 lines
2025 bytes
2025 bytes
"Eddie Shipman" <mrbaseball34@No_Spam_gmail.com> wrote in message
news:MPG.1eba898ad1826f2f9897dd@forums.borland.com...
> I have a friend that needs this code converted from Delphi to BCPP6.
#include "msxml2.h"
#include "IdBaseComponent.hpp"
#include "IdCoder.hpp"
#include "IdCoder3to4.hpp"
#include "IdCoderMIME.hpp"
#include <utilcls.h>
void __fastcall AddBinaryFile(TStream *AStream, IXMLDOMNode *oNode)
{
TComInterface<IXMLDOMCDATASection> oCDataSection;
TComInterface<IXMLDOMNode> oChild;
TIdEncoderMIME *meMIMEEncoder = new TIdEncoderMIME(NULL);
try
{
oXMLDoc->createCDATASection(WideString(meMIMEEncoder->Encode(AStream,
AStream->Size)), &oCDataSection);
}
__finally
{
delete meMIMEEncoder;
}
oNode->appendChild(oCDataSection, &oChild);
}
> Does Indy come installed with BCPP6?
Indy 8 does. That is a very old version, though. You would have to
completely remove it from the computer first in order to upgrade to Indy 9
or higher.
Gambit
Technical Details
Message-ID:
<4450faf8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.maxwell.syr.edu!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<MPG.1eba898ad1826f2f9897dd@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,168942aed4bdef9d X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <MPG.1eba898ad1826f2f9897dd@forums.borland.com> Subject: Re: Delphi conversion Date: Thu, 27 Apr 2006 10:07:32 -0700 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4450faf8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1146157816 68.69.17.41 (27 Apr 2006 10:10:16 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.maxwell.syr.edu!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail