Re: About SIP and IM problem
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Wed, 22 Feb 2006 09:06:29 -0700
What SDK are you compiling against? Why are you doing a #include of a lib
file? Why are you passing an uninitialized pointer in pInfo to SHSipInfo?
It seems like you're way off track...
Paul T.
"David" <highhui@xxxxxxx> wrote in message
news:OlhQLL2NGHA.3576@xxxxxxxxxxxxxxxxxxxxxxx
Dear All:
There are 2 input methods in my WinCE system.
Now I have to work for the following:
1),Displaying the SIP controled by my program.
2),Switching between the 2 methods;
My function code is as follows:
//------------------------------------
#include "Sipapi.h"
#include "Aygshell.h"
#include "aygshell.lib"
...
...
...
void ShowSip( BOOL fB)
{
SIPINFO *pInfo;
CLSID *pClassid;
if(fB)
{
SHSipInfo(SPI_GETSIPINFO,0,pInfo,0);
pInfo->fdwFlags|=SIPF_ON;
SHSipInfo(SPI_SETSIPINFO,0,pInfo,0);
}
else
{
SHSipInfo(SPI_GETSIPINFO,0,pInfo,0);
pInfo->fdwFlags&=~SIPF_ON;
SHSipInfo(SPI_SETSIPINFO,0,pInfo,0);
}
}
//------------------------------------------------
While compiling the code ,There is an error:
aygshell.h(68) : error C2061: syntax error : identifier
'IShellPropSheetExt'
I open the aygshell.h file and find the error in the sentence:
BOOL SHEnumPropSheetHandlers(HKEY hkey, int *pcPages,
HPROPSHEETPAGE
*prghPropPages,
IShellPropSheetExt**prgpispse);
Here, I have no idea on how to do it.
To switch input methods,is the following code right? And what must the
"?" be ?
//--------------------------------------------------
CLSID *pClassid;
SHSipInfo(SPI_GETCURRENTIM ,0,pClassid,0);
pClassid->Data1=? ;
pClassid->Data2=? ;
pClassid->Data3=? ;
pClassid->Data4=? ;
SHSipInfo(SPI_SETCURRENTIM ,0,pClassid,0);
//------------------------------------------------
Any advice is welcome ,Thank you!
.
- References:
- About SIP and IM problem
- From: David
- About SIP and IM problem
- Prev by Date: Re: FTP Server for Windows CE 5.0
- Next by Date: Re: Visual Studio.net Professional
- Previous by thread: About SIP and IM problem
- Next by thread: Regarding Direct3DMobile
- Index(es):