RasEditPhonebookEntry() error
Using Visual Studio 2005 on Windows Vista Beta 2 Build 5472, RasEditPhonebookEntry() returns error 120 (ERROR_CALL_NOT_IMPLEMENTED?). Code that worked previously on Windows 98-XP SP2 is:
#include "Ras.h"
#include "Raserror.h"
#pragma comment(lib, "Rasapi32.lib")
DWORD dwRet = ::RasEditPhonebookEntry(m_hWnd, NULL, _T("Test"));
The result is the same using the default or a specified phonebook. Will RasEditPhonebookEntry() will be implemented in Vista?
Graham
[546 byte] By [
GrahamF] at [2007-12-23]
I've got the same problem, and didn't find any answer about this problem. Have someone found a solution ? did we have to wait for a Vista service pack wich will perhaps sovle it ?
Thanks in advance for your answer.
Chris
The solution, use the RasEntryDlg ( ) in RasDlg.dll instead.
Setting
RASENTRYDLG.dwFlags = RASEDFLAG_NewEntry;
causes RasEntryDlg ( ) to display a wizard for creating a new phone-book entry.
You had to use RasEntryDlgW instead, be careful to use the Unicode version, that's the only function which woks under Vista whatever language you use.
HTH
Chris.