Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am working on a WinCE 5.0 project in that i need to include a spell checker. I am trying to use SPLUSA.LIB provided by wince.

M addind SPLUSA.LIB under SOURCELIB. and trying to initialize dictionary with function SplInit() provided by SPLUSA.LIB, but it is always failing.
C++
SplInit( * phspl, 0, NULL );

here	int SplInit( 
	HSPL* phspl, // Pointer to the handle of the new spelling session
	int clex,    // Number of user dictionaries that are defined. If clex is 0, the SplCheck function uses only the main dictionary(Currently we are trying with main dictionary only)
	WCHAR** ppwsz // Pointer to a list of pointers, each of which point to a null-terminated string that contains the path and file name for an external user dictionary.
);


Code Snippet

C++
HSPL* phspl;//Handel
int nCheck = SplInit( phspl, 0, NULL );


SplInit() is always returning 0, which indicate failure and phspl is always null which should be a handle to dictionary.

Please suggest, how to add Spell checker in wince 5.0.

Thanks.
Posted
Updated 13-Sep-11 20:12pm
v3
Comments
Prerak Patel 13-Sep-11 2:46am    
Added code block.
Paul Heil 13-Sep-11 17:17pm    
How is it failing? Is there an error code or message? How are you calling the function? Please, post more details.
Member 7771060 14-Sep-11 6:23am    
CAn anybody tell me that can we use SPLUSA.LIB with wince 5.0 or not.
Rage 14-Sep-11 6:57am    
According to this, 0 is a perfect legal value.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900