Article View: borland.public.cppbuilder.nativeapi
Article #7615Re: Ras Problem
From: Bob Gonder
Date: Sat, 15 Jan 2005 18:44
Date: Sat, 15 Jan 2005 18:44
38 lines
2546 bytes
2546 bytes
Grety wrote: >I has the same problem so I also ask about it About the missing phone numbers: See this page: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/rasgetentrydialparams.asp >> > DWORD i,res,numEntries = 10; >> Initialize numEntries to 0 instead. >I'll try it but is there any problem? >It has to be changed then so what will happen if I dont change to 0? If the call fails, the value isn't changed, so the following "for" loop will go 10 times on no data. Set the default value to 0, so if the call fails, the "for" will abort. >> > res = RasEnumEntries(NULL, NULL, entries, &size, &numEntries); >> What is the actual return value here? >How many enteries do I have? >Is that also important? It is important to check the returned value (res). It should be 0 if the function was ok, otherwise, it is an error code. >> > rv=RasGetEntryDialParams(NULL, ¶ms, &passwordreturned); >> What is the actual return value here? >The Parameter that we (may) like to know such as UserName , Password and >Tel# No, he is asking what is the value of rv? It should be 0. You should check it and handle the non-zero error codes. >> > but I cant access (see) the Dial number !! >> Did you actually specify a phone number in DUN to begin with? >Yes Ofcorse (atleast in my case) See the link at the top of this message.
Technical Details
Message-ID:
<bloiu0t05e2o0tkss663oqicjacifdsvef@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41e7968f@newsgroups.borland.com> <41e815c9@newsgroups.borland.com> <41e92b0c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,38f1da7e16dcf449 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Ras Problem Date: Sat, 15 Jan 2005 10:44:08 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <bloiu0t05e2o0tkss663oqicjacifdsvef@4ax.com> References: <41e7968f@newsgroups.borland.com> <41e815c9@newsgroups.borland.com> <41e92b0c@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.145.129 X-Trace: newsgroups.borland.com 1105814649 67.77.145.129 (15 Jan 2005 10:44:09 -0800) Lines: 40 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail