🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Ras again

#9337
From: Babak
Date: Fri, 16 Jul 2004 16:08
29 lines
1564 bytes
What is wrong with this code below:
_________________
Source :

  RASDIALPARAMS params = {sizeof(RASDIALPARAMS), 0};
  BOOL bPassword = FALSE;
  DWORD errco=RasGetEntryDialParams(NULL, &params, &bPassword);
  if( errco == 0 ){//on success
     ShowMessage("Done !");
     Memo1->Lines->Add(params.szEntryName);
     Memo1->Lines->Add(params.szUserName);
     Memo1->Lines->Add(params.szPassword);
     Memo1->Lines->Add(params.szPhoneNumber);
     Memo1->Lines->Add(params.szCallbackNumber);
     Memo1->Lines->Add(params.szDomain);
  }
  else{
     ShowMessage("Error Code:"+IntToStr(errco));
  }
}
_________________________
Error Detail :
___________
 It shows me error 623

#define ERROR_CANNOT_FIND_PHONEBOOK_ENTRY    (RASBASE+23)
/*
 * The system could not find the phone book entry for this connection.%0
 */
Technical Details
Message-ID: <40f805ab@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6d4b466cdd4c8652,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Babak" <babak_info@hot.pop>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Ras again
Date: Fri, 16 Jul 2004 20:38:58 +0430
Lines: 32
X-Newsreader: Microsoft Outlook Express 4.72.3110.37
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.37
NNTP-Posting-Host: 62.60.157.36
Message-ID: <40f805ab@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1089996203 62.60.157.36 (16 Jul 2004 09:43:23 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail