all groups > dotnet compact framework > october 2007 >
You're in the

dotnet compact framework

group:

Fail to load SAPI or ContactsDMenuRes.dll !


Fail to load SAPI or ContactsDMenuRes.dll ! MeYouhana NO[at]SPAM gmail.com
10/11/2007 4:24:18 AM
dotnet compact framework:
I am using IContact interface to dosplau a contact summary through a
call to Display() method.
after open the contact summary dialog the Menu items has ... in place
of "Add Voice Tag" and when click on it I got a messagebox with "Fail
to load SAPI or ContactsDMenuRes.dll !"

any help?


HRESULT hr;
IPOutlookApp *polApp =NULL;

//Now, get the main application
hr = CoCreateInstance(CLSID_Application, NULL,
CLSCTX_INPROC_SERVER,IID_IPOutlookApp, (LPVOID *)&polApp);
if (FAILED(hr))
{
return FALSE;
}
//Log on to Pocket Outlook
hr = polApp->Logon(NULL);
if (FAILED(hr))
{
polApp->Release();
return FALSE;
}
IContact *pCntct;
//get contact
hr = polApp->GetItemFromOid(Oid, (IDispatch**)&pCntct);
if (FAILED(hr))
{
polApp->Logoff();
polApp->Release();
return FALSE;
}
pCntct->Display();
//Finally, log off and release the Application object
polApp->Logoff();

//Release
pCntct->Release();
polApp->Release();

//setflag
//m_fDataChanged = true;
return TRUE;
RE: Fail to load SAPI or ContactsDMenuRes.dll ! dbgrick
10/11/2007 10:40:02 AM
Probably a silly question, but did you call CoInitialize before creating the
object with CoCreateInstance?

Rick D.
Contractor

[quoted text, click to view]
Re: Fail to load SAPI or ContactsDMenuRes.dll ! Peter Foot [MVP]
10/11/2007 12:47:24 PM
Do you have Microsoft Voice Command installed or have you ever installed it
and removed it from the device?

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

[quoted text, click to view]
AddThis Social Bookmark Button