Thread View: borland.public.cppbuilder.internet.socket
10 messages
10 total messages
Started by Regan Thacker
Tue, 09 Oct 2007 19:53
Problem with TIdEncoderMime in C++ Builder 2007
Author: Regan Thacker
Date: Tue, 09 Oct 2007 19:53
Date: Tue, 09 Oct 2007 19:53
39 lines
2074 bytes
2074 bytes
I am in the process of migrating code from C++ Builder 6.0 to 2007. I am
getting an exception when I try to use TIdEncoderMIME to encode a string.
The excpetion complains that the CodingTable is empty.
If I add TIdEncoderMIME to the form and use that, the exception goes away
and things work fine. However, if I simply create the object and try to use
it, I get the exception.
In 6.0, I used the following code:
String fullencode;
TIdBase64Encoder * MimeEncoder = new TIdBase64Encoder(NULL);
try
{
MimeEncoder->Reset();
MimeEncoder->CodeString(origData);
fullencode = MimeEncoder->CompletedInput();
}
__finally
{
delete MimeEncoder;
}
In 2007, I use:
TIdEncoderMIME * MimeEncoder = new TIdEncoderMIME(NULL);
try
{
fullencode = MimeEncoder->Encode(origData);
}
__finally
{
delete MimeEncoder;
}
Any ideas on how to get around this? The unit where I am encoding data is
not associated with a form.
Thank you,
Regan
Re: Problem with TIdEncoderMime in C++ Builder 2007
Author: Remy Lebeau (TeamB)
Date: Tue, 09 Oct 2007 20:19
Date: Tue, 09 Oct 2007 20:19
22 lines
1696 bytes
1696 bytes
"Regan Thacker" <no.spam@no.spam.com> wrote in message news:470bdc34$1@newsgroups.borland.com... > I am in the process of migrating code from C++ Builder 6.0 to 2007. You did not say which version of Indy you are using. > I am getting an exception when I try to use TIdEncoderMIME > to encode a string. The excpetion complains that the > CodingTable is empty. I ran into the same problem awhile back. TIdEncoderMIME's InitComponent() method was not being called correctly to initialize the CodingTable. I don't remember why, and I haven't played with it in recent months. > Any ideas on how to get around this? Have you tried upgrading to a newer version of Indy yet? Gambit
Re: Problem with TIdEncoderMime in C++ Builder 2007
Author: Regan Thacker
Date: Wed, 10 Oct 2007 16:32
Date: Wed, 10 Oct 2007 16:32
39 lines
2300 bytes
2300 bytes
It is version 10.1.5, the version that comes with C++ Builder 2007 (released in September). I have not tried to download the latest as I assumed since C++ Builder 2007 just released, this would be the most current and tested. However, when I look at the Indy site, I am unable to see any version later than 10.1.5. I will try to find a later version. Thanks, Regan "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:470be26d$1@newsgroups.borland.com... > > "Regan Thacker" <no.spam@no.spam.com> wrote in message > news:470bdc34$1@newsgroups.borland.com... > >> I am in the process of migrating code from C++ Builder 6.0 to 2007. > > You did not say which version of Indy you are using. > >> I am getting an exception when I try to use TIdEncoderMIME >> to encode a string. The excpetion complains that the >> CodingTable is empty. > > I ran into the same problem awhile back. TIdEncoderMIME's InitComponent() > method was not being called correctly to initialize the CodingTable. I > don't remember why, and I haven't played with it in recent months. > >> Any ideas on how to get around this? > > Have you tried upgrading to a newer version of Indy yet? > > > Gambit > >
Re: Problem with TIdEncoderMime in C++ Builder 2007
Author: Remy Lebeau (TeamB)
Date: Wed, 10 Oct 2007 18:10
Date: Wed, 10 Oct 2007 18:10
18 lines
1418 bytes
1418 bytes
"Regan Thacker" <no.spam@no.spam.com> wrote in message news:470cfea8$1@newsgroups.borland.com... > I have not tried to download the latest as I assumed since > C++ Builder 2007 just released, this would be the most > current and tested. Nope. 10.2.3 is the latest. I've already posted many times why it was not shipped in 2007. > However, when I look at the Indy site, I am unable to see > any version later than 10.1.5. 10.2.3 is the current development snapshot. Gambit
Re: Problem with TIdEncoderMime in C++ Builder 2007
Author: Regan Thacker
Date: Fri, 12 Oct 2007 17:48
Date: Fri, 12 Oct 2007 17:48
33 lines
2197 bytes
2197 bytes
I attempted to build the snapshot and am unable to do so. Can you please tell me how to do so with C++ Builder 2007 (as there are not bpks) or direct me to a previous post or instructions? The only instructions I can find deal with Delphi or previous versions of C++ Builder. When I try to adapt them, it appears I can build IndySystem, but not IndyCore. Regan "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:470d15ab$1@newsgroups.borland.com... > > "Regan Thacker" <no.spam@no.spam.com> wrote in message > news:470cfea8$1@newsgroups.borland.com... > >> I have not tried to download the latest as I assumed since >> C++ Builder 2007 just released, this would be the most >> current and tested. > > Nope. 10.2.3 is the latest. I've already posted many times why it was > not > shipped in 2007. > >> However, when I look at the Indy site, I am unable to see >> any version later than 10.1.5. > > 10.2.3 is the current development snapshot. > > > Gambit > >
Re: Problem with TIdEncoderMime in C++ Builder 2007
Author: Remy Lebeau (TeamB)
Date: Fri, 12 Oct 2007 18:10
Date: Fri, 12 Oct 2007 18:10
16 lines
1514 bytes
1514 bytes
"Regan Thacker" <no.spam@no.spam.com> wrote in message news:470fb373$1@newsgroups.borland.com... > I attempted to build the snapshot and am unable to do so. Why not? You need to be more specific. > The only instructions I can find deal with Delphi or previous > versions of C++ Builder. When I try to adapt them, it appears > I can build IndySystem, but not IndyCore. Again, why not? Gambit
Re: Problem with TIdEncoderMime in C++ Builder 2007
Author: Regan Thacker
Date: Fri, 12 Oct 2007 19:51
Date: Fri, 12 Oct 2007 19:51
54 lines
3290 bytes
3290 bytes
The instructions I found are at http://groups.google.com/group/borland.public.cppbuilder.internet.socket/browse_thread/thread/b44277b84bdb86be/f86e6b103ac5c6ff?lnk=gst&q=build+INDy# 1) I created a new Package project and named it IndySystem11 since the C++ Builder 2007 R2 says it is version 11.0.2804. 2) I then opened IndySystem110.dpk from the Lib\System directory of the Indy download. 3) I added all the listed .pas files to my new package. 4) I set the Build Configuration to Realease and built the package. There were no errors. 5) I created a new Package project and named it IndyCore11 6) I opened IndyCore110.dpk from the Lib\Core directory of the Indy download 7) I added all the listed .pas files to the new package. 8) I added the path to the Release directory of the IndySystem110 package to the include and lib paths for the project. 9) I then attempted to build the project. I get an error "File not found: 'IdGlobal.dcu'. If I do a search on my harddrive, the only place I see 'IdGlobal.dcu' is in the following directories: Program Files\Rad Studio\4.0\lib\Indy10, Program Files\Rad Studio\4.0\lib\Indy9, Program Files\Rad Studio\4.0\lib\debug\Indy10, and Program Files\Rad Studio\4.0\lib\debug\Indy9 The files in these directories were installed by C++ Builder 7.0 and not part of the download from Indy, nor part of the output of building IndySystem (IdGlobal.obj was build, but no dcu). Do I include these paths? What do I need to do to get this to build? Regan "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:470fb8d4$1@newsgroups.borland.com... > > "Regan Thacker" <no.spam@no.spam.com> wrote in message > news:470fb373$1@newsgroups.borland.com... > >> I attempted to build the snapshot and am unable to do so. > > Why not? You need to be more specific. > >> The only instructions I can find deal with Delphi or previous >> versions of C++ Builder. When I try to adapt them, it appears >> I can build IndySystem, but not IndyCore. > > Again, why not? > > > Gambit > >
Re: Problem with TIdEncoderMime in C++ Builder 2007
Author: Remy Lebeau (TeamB)
Date: Fri, 12 Oct 2007 23:08
Date: Fri, 12 Oct 2007 23:08
17 lines
1748 bytes
1748 bytes
"Regan Thacker" <no.spam@no.spam.com> wrote in message news:470fd051$1@newsgroups.borland.com... > 5) I created a new Package project and named it IndyCore11 <snip> > I get an error "File not found: 'IdGlobal.dcu'. Sounds like you forgot to add "IndySystem11" to IndyCore11's list of Required packages. Make sure to add both "IndySystem11" and "IndyCore11" to IndyProtocols11's list when you get that far. The alternative is to not make your own packages at all, but to use BCB's copy of dcc32.exe to build the original .dpk files directly instead. Gambit
Re: Problem with TIdEncoderMime in C++ Builder 2007
Author: Regan Thacker
Date: Mon, 15 Oct 2007 23:07
Date: Mon, 15 Oct 2007 23:07
22 lines
2454 bytes
2454 bytes
> The alternative is to not make your own packages at all, but to use BCB's > copy of dcc32.exe to build the original .dpk files directly instead. I tried to use dcc32.exe. It was unable to build the Lib\System\IndySystem110.dpk as it was missing a IndySystem110.res file. So I build IndySystem100.dpk and that worked. I then copied the output files to the Core directory and ran dcc32 against the IndyCore110.dpk and then repeated that for the IndyProtocol files. (I had no command line arguments as I did not know what to specify). Now I have IndySystem100.bpl, dcp, and dcu. I also have the same for IndyCore and IndyProtocols. I can find the bpls in the C:\Program Files\CodeGear\RAD Studio\5.0\bin but the dcus and dcps seem to only be called IndySystem, IndyCore, and IndyProtocols. If I replace the bpl files in the 5.0\bin directory, I get the following error when launching eitehr C++ Builder or the exe I have previously compiled. "The procedure entry pont @Idsyswin32@TIdSysWin32@ could not be located in the dynamic link library IndySystem100.bpl" What step am I missing now? Regan
Re: Problem with TIdEncoderMime in C++ Builder 2007
Author: Remy Lebeau (TeamB)
Date: Tue, 16 Oct 2007 16:37
Date: Tue, 16 Oct 2007 16:37
23 lines
2055 bytes
2055 bytes
"Regan Thacker" <no.spam@no.spam.com> wrote in message news:4713f294$1@newsgroups.borland.com... > I had no command line arguments as I did not know what to specify Look at the FULLC#.BAT scripts to see what command-line parameters are normally used. The -JPNE flag is particularly important when compiling for C++ > Now I have IndySystem100.bpl, dcp, and dcu. Those files are for Delphi, not C++. > If I replace the bpl files in the 5.0\bin directory, I get the following > error when launching eitehr C++ Builder or the exe I have previously > compiled. You did not remove the old version of Indy that ships with BCB, and you did non recompile with the new version. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads