🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10572

Re: CallBackNumber

#10572
From: Remy Lebeau (TeamB)
Date: Mon, 05 Apr 2004 17:10
35 lines
2131 bytes
"Babak" <babak_info@hot.pop> wrote in message
news:4070690f@newsgroups.borland.com...

>     rdParams.dwSize = sizeof(RASDIALPARAMS);
>    // Is the line above give me number of DUN connections?

No.  it is merely assigning the byte size of the structure itself, so that
the RAS system knows which version of the structure is being used.

>     rdParams.szEntryName[0] = '\0'; //why?

It is effectively telling whatever RAS function you will be passing the
sructure to that there is no entry name provided, by NULL-terminating the
string.

>     lstrcpy(rdParams.szPhoneNumber, Edit1->Text); // is it true?

No.  You are trying to copy an AnsiString directly to a char[] array.  You
should not do that.  You can use the AnsiString's c_str() method to get a
suitable char* pointer for the AnsiString which you can then copy.  However,
I would suggest that you use lstrcpyn() instead of lstrcpy():

    lstrcpyn(rdParams.szPhoneNumber, Edit1->Text.c_str(),
RAS_MaxPhoneNumber);

>     rdParams.szCallbackNumber[0] = '\0'; //what is it?
>
> I realy dont know what is CallBackNumber,

It is the number that the called party can dial to reach the caller again
later.


Gambit
Technical Details
Message-ID: <407192ea@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4070690f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,88db4743a6b4c6df
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-05 10:40:25 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4070690f@newsgroups.borland.com>
Subject: Re: CallBackNumber
Date: Mon, 5 Apr 2004 10:10:07 -0700
Lines: 37
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: 67.22.138.253
Message-ID: <407192ea@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1081185002 67.22.138.253 (5 Apr 2004 10:10:02 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail