Prev: Sending a SMS through a C# application
Next: Error 87 when CeSeekDatabaseEx with CEDB_SEEK_CEOID
From: pramod on 18 May 2006 05:59 Hi All, I am trying to write an entry into SIM phone book. Here's the code. SIMPHONEBOOKENTRY spbe; memset(&spbe,0,sizeof(SIMPHONEBOOKENTRY)); spbe.cbSize = sizeof(SIMPHONEBOOKENTRY); _tcsncpy(spbe.lpszText,_T("somename"); _tcsncpy(spbe.lpszAddress,_T("123-456-7890"); spbe.dwParams = SIM_PARAM_PBE_TEXT | SIM_PARAM_PBE_ADDRESS; HRESULT result = SimWritePhonebookEntry(hSim,SIM_PBSTORAGE_SIM,iEntry,&spbe); But I get an E_INVALIDARG as the error return value. Where am I going wrong? Thanks
|
Pages: 1 Prev: Sending a SMS through a C# application Next: Error 87 when CeSeekDatabaseEx with CEDB_SEEK_CEOID |