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]
# 1

I am having same problem. I am wondering if you have resolved this yet? Help me would be greatly appreciated.

Thanks,

Adrian

Adhusky at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...
# 2

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

cg13 at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...
# 3

I have tried RasCreatePhonebookEntry( ), it also returned 120. Both RasEntryDlg( ) and RasDialDlg( ) failed. They returned false.

CNT

cnt369 at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...
# 4

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.

cnt369 at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...
# 5
I have the same problem!
RASEDFLAG_NewEntry was already!
sweta_C++_# at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...
# 6

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.

cg13 at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...

Software Development for Windows Vista

Site Classified