Article View: borland.public.cppbuilder.nativeapi
Article #16387Re: Sending Message over a network
From: Remy Lebeau (TeamB)
Date: Wed, 14 May 2003 16:41
Date: Wed, 14 May 2003 16:41
18 lines
1541 bytes
1541 bytes
"Jarkko Juntunen" <dzeidzei@suolakaivos.com> wrote in message
news:Xns937B7FC40EE86dzeidzeisuolakaivosc@207.105.83.65...
> When I tried Your solution, I got "???????" (7 question marks) as a
> message?
Then try using WideString instead of AnsiString for the message portion as
well:
...
WideString wMsg = MemoMessage->Text;
int iReturn = NetMessageBufferSend(..., (LPBYTE)wMsg.c_bstr(),
(wMsg.Length()+1)*sizeof(wchar_t));
Gambit
Technical Details
Message-ID:
<3ec27133$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec0f3fb@newsgroups.borland.com> <3ec11fe0$1@newsgroups.borland.com> <3ec1568a@newsgroups.borland.com> <3ec17714@newsgroups.borland.com> <Xns937B7FC40EE86dzeidzeisuolakaivosc@207.105.83.65>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,372ba4ad7a699fb7 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-14 09:41:54 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ec0f3fb@newsgroups.borland.com> <3ec11fe0$1@newsgroups.borland.com> <3ec1568a@newsgroups.borland.com> <3ec17714@newsgroups.borland.com> <Xns937B7FC40EE86dzeidzeisuolakaivosc@207.105.83.65> Subject: Re: Sending Message over a network Date: Wed, 14 May 2003 09:41:24 -0700 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3ec27133$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052930355 207.175.226.26 (14 May 2003 09:39:15 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail