Article View: borland.public.cppbuilder.internet.socket
Article #640Re: Problem sending an structure with TIdTCPClient
From: Star
Date: Thu, 13 Dec 2007 12:56
Date: Thu, 13 Dec 2007 12:56
38 lines
2264 bytes
2264 bytes
Yes, I know I cannot use AnsiString. My structure looks like this:
typedef struct ClientToServerCommand
{
int nMessageType;
char cGUID[255];
char cUserData[255];
} CLIENTTOSERVERCMD;
I just checked the Indy version and is 10.1.5
Thanks for your help.
Remy Lebeau (TeamB) wrote:
> "Star" <noemail@noemail.com> wrote in message
> news:4760457a$1@newsgroups.borland.com...
>
>> I'm using C++ Builder 2007. Not sure what version of Indy comes with that.
>
> Indy 9 (not sure which build) and Indy 10.1.5. So how you send your struct
> still depends on what version of Indy you configured when you installed the
> IDE. As I mentioned, your code will look different depending on which
> version you are actually using. Right-click on any Indy component in the
> form designer to find out.
>
> You didn't answer my other question - what does CLIENTTOSERVERCMD contain
> inside of it. I only ask because if you are using AnsiString or other
> dynamically-allocated fields, then you can't send your struct as-is at all,
> regardless of your Indy version.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<47612bf3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4760409e$1@newsgroups.borland.com> <4760433e$3@newsgroups.borland.com> <4760457a$1@newsgroups.borland.com> <47605ff1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3de5ee2b93c32b5 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 13 Dec 2007 13:56:16 +0100 From: Star <noemail@noemail.com> User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Problem sending an structure with TIdTCPClient References: <4760409e$1@newsgroups.borland.com> <4760433e$3@newsgroups.borland.com> <4760457a$1@newsgroups.borland.com> <47605ff1$1@newsgroups.borland.com> In-Reply-To: <47605ff1$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.46.55.249 Message-ID: <47612bf3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1197550579 83.46.55.249 (13 Dec 2007 04:56:19 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail