🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
4 messages
4 total messages Started by David Ayre Sat, 11 Feb 2006 09:24
Problem with IdSMTP in 2006
#2700
Author: David Ayre
Date: Sat, 11 Feb 2006 09:24
17 lines
1374 bytes
Hi,

I have just installed 2006 and in an old application I used NMSMTP 
component and have tried to replace this with IdSMTP component from
Indy 9 and I get a compile error highlighting this line in
IdGlobal.hpp.

extern PACKAGE int __fastcall PosInStrArray(const AnsiString
SearchStr, AnsiString * Contents, const int Contents_Size, const
bool CaseSensitive = true);
The error message says it cannot initialise this item.
What have I done wrong?

Cheers,

David Ayre
Re: Problem with IdSMTP in 2006
#2703
Author: Remy Lebeau (TeamB)
Date: Mon, 13 Feb 2006 07:34
14 lines
1266 bytes
"David Ayre" <davidcayre@ntlworld.com> wrote in message
news:43edbb5e$1@newsgroups.borland.com...

> I get a compile error highlighting this line in IdGlobal.hpp.

There is nothing wrong with that line.

> The error message says it cannot initialise this item.

What is the EXACT error message, word for word?


Gambit
Re: Problem with IdSMTP in 2006
#2704
Author: David Ayre
Date: Mon, 13 Feb 2006 09:04
30 lines
1692 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
>"David Ayre" <davidcayre@ntlworld.com> wrote in message
>news:43edbb5e$1@newsgroups.borland.com...
>
>> I get a compile error highlighting this line in IdGlobal.hpp.
>
>There is nothing wrong with that line.
>
>> The error message says it cannot initialise this item.
>
>What is the EXACT error message, word for word?
>
>
>Gambit
>
>
Hi Remy,
The messages were:-

[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

It only happens when I place the IdSMTP and IdMessage components on the form in a particular application.

Cheers,

David
Re: Problem with IdSMTP in 2006
#2707
Author: David Ayre
Date: Tue, 14 Feb 2006 08:11
45 lines
2270 bytes
Hi Remy,

Since last post I have removed an unwanted include from one of
my units and the problem has gone away.
In a unit that called the form I was having trouble with,
was #include <windows.h> which was left over from a much
earlier version of the application. I removed it and all was
well.

Cheers,

David

"David Ayre" <davidcayre@ntlworld.com> wrote:
>
>"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>>
>>"David Ayre" <davidcayre@ntlworld.com> wrote in message
>>news:43edbb5e$1@newsgroups.borland.com...
>>
>>> I get a compile error highlighting this line in IdGlobal.hpp.
>>
>>There is nothing wrong with that line.
>>
>>> The error message says it cannot initialise this item.
>>
>>What is the EXACT error message, word for word?
>>
>>
>>Gambit
>>
>>
>Hi Remy,
>The messages were:-
>
>[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
>
>It only happens when I place the IdSMTP and IdMessage components on the form in a particular application.
>
>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