Thread View: borland.public.cppbuilder.internet.socket
5 messages
5 total messages
Started by David Ayre
Tue, 05 Dec 2006 13:52
Problem with IdSMTP
Author: David Ayre
Date: Tue, 05 Dec 2006 13:52
Date: Tue, 05 Dec 2006 13:52
17 lines
1437 bytes
1437 bytes
Hi, I have a form in an application that contains an IdSMTP. I call this form when I want to send an e-mail to report. Up to now I have only called this form from one other form, but now I waqnt to call it from another form as well. However, when I include the header file for the email form in the new form, I get a compile error in:- extern PACKAGE int __fastcall PosInStrArray(const AnsiString SearchStr, AnsiString * Contents, const int Contents_Size, const bool CaseSensitive = true); This is in IdGlobal.hpp. The message says that it can't be initialised. Any ideas? Cheers, David
Re: Problem with IdSMTP
Author: David Ayre
Date: Tue, 05 Dec 2006 15:18
Date: Tue, 05 Dec 2006 15:18
22 lines
1331 bytes
1331 bytes
Hans Galema <notused@notused.nl> wrote: >David Ayre wrote: > >> This is in IdGlobal.hpp. The message says that it can't be >> initialised. >> Any ideas? > >You might have included different headerfiles. > >Check both .cpp and .h files. // four all together. > >Hans. Hi Hans, No. I checked that. However, since posting I have commented out the offending line in IdGlobal.hpp and it was fine after that. Cheers, David
Re: Problem with IdSMTP
Author: Hans Galema
Date: Tue, 05 Dec 2006 15:21
Date: Tue, 05 Dec 2006 15:21
11 lines
1201 bytes
1201 bytes
David Ayre wrote: > This is in IdGlobal.hpp. The message says that it can't be > initialised. > Any ideas? You might have included different headerfiles. Check both .cpp and .h files. // four all together. Hans.
Re: Problem with IdSMTP
Author: Remy Lebeau (TeamB)
Date: Tue, 05 Dec 2006 17:39
Date: Tue, 05 Dec 2006 17:39
12 lines
1138 bytes
1138 bytes
"David Ayre" <davidcayre@ntlworld.com> wrote in message news:457587a6$1@newsgroups.borland.com... > However, when I include the header file for the email form in the > new form, I get a compile error in:- What is the EXACT error message? There is no error in the code you have shown. Gambit
Re: Problem with IdSMTP
Author: David Ayre
Date: Wed, 06 Dec 2006 10:00
Date: Wed, 06 Dec 2006 10:00
31 lines
1716 bytes
1716 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: > >"David Ayre" <davidcayre@ntlworld.com> wrote in message >news:457587a6$1@newsgroups.borland.com... > >> However, when I include the header file for the email form in the >> new form, I get a compile error in:- > >What is the EXACT error message? There is no error in the code you have >shown. > > >Gambit > > Hi Remy, The line I quoted in my original post was highlighted in red, in IdGlobal.hpp. If I comment this line out, it compiles OK. This was the message:- [C++ Error] Idglobal.hpp(322): E2189 extern variable cannot be initialized [C++ Error] Idglobal.hpp(322): E2188 Expression syntax [C++ Error] Idglobal.hpp(322): E2293 ) expected I am using BDS 2006 and Indy 9 Cheers, David
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