请问哪有WinCE4下的五笔输入法下载,怎样将它加入到我定制的系统中去,系统运行时如何切换输入法?

qibao77 2007-11-03 12:02:03
客户要求系统中加入五笔输入法,而PB中只带有拼音,要怎样才能添加第三方的输入法。

另外,在哪里可以下载到WinCE4。2上运行的五笔输入法软件。

还有就是系统运行时怎样切换输入法,如果有多种输入法存在,好像只能在中英文之间切换。
...全文
425 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
实心竹 2012-08-22
  • 打赏
  • 举报
回复
我的是wince下的pda,客户需求五笔输入法,不知楼主解决了没?请赐教!
lenux 2007-11-06
  • 打赏
  • 举报
回复
lz这个问题就直接去网上搜了,pc上做五笔的,应该技术好一些吧。可以问问有没有wince下的了。
好像没有见过在mobile下的。
你多问问了。
qibao77 2007-11-05
  • 打赏
  • 举报
回复
我就是想定制一个带有五笔输入法的操作系统,但是没找到合适的五笔输入法
lenux 2007-11-05
  • 打赏
  • 举报
回复
这种软件应该找专业公司定制吧
qibao77 2007-11-05
  • 打赏
  • 举报
回复
请问哪公司做这五笔输入法,可以考虑购买。
1982pc 2007-11-05
  • 打赏
  • 举报
回复
上面的只是一部分,大概的,具体的可以去网上找,很固定的格式.
1982pc 2007-11-05
  • 打赏
  • 举报
回复
你要自己写输入法?!

只要按照wince的格式写,然后在注册进去就可以.

如果不自己写的话,就得去找别人做好的.然后再注册进去.
// HandWriting.cpp : Implementation of DLL Exports.


// Note: Proxy/Stub Information
// To build a separate proxy/stub DLL,
// run nmake -f HandWritingps.mk in the project directory.

#include "stdafx.h"
#include "resource.h"
#include "initguid.h"
#include <commctrl.h>
#include <aygshell.h>
#include <sipapi.h>
#include "dllmain.h"
#include "HandWriting.h"
#include "HandWriting_classfactory.h"

#include "HandWriting_i.c"

// constant strings that we use for registering the server
#define PENINPUT TEXT("xx输入法")
#define STRING_ONE TEXT("1")
#define ICON_NAME TEXT("\\windows\\HandWriting.dll,0")
#define EXEPATH TEXT("\\windows\\HandWriting.dll")



DWORD g_dwObjectCount;
HINSTANCE g_hInstDll;

CComModule _Module;

BEGIN_OBJECT_MAP(ObjectMap)
END_OBJECT_MAP()

/////////////////////////////////////////////////////////////////////////////
// DLL Entry Point

extern "C" BOOL WINAPI DllMain(HANDLE hInstance, DWORD dwReason, LPVOID)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
g_hInstDll = (HINSTANCE)hInstance;
_Module.Init(ObjectMap, (HINSTANCE)hInstance);
}
else if (dwReason == DLL_PROCESS_DETACH)
{
_Module.Term();
}
return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// Used to determine whether the DLL can be unloaded by OLE

STDAPI DllCanUnloadNow(void)
{
if( !g_dwObjectCount )
{
return NOERROR;
}

return S_FALSE;
}

/////////////////////////////////////////////////////////////////////////////
// Returns a class factory to create an object of the requested type

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
HRESULT hr;

CClassFactory *pClassFactory = new CClassFactory( rclsid );

if( pClassFactory )
{
hr = pClassFactory->QueryInterface( riid, ppv );
RELEASE( pClassFactory );

return hr;
}

return E_OUTOFMEMORY;
}

// add all the registry entries needed to make this CLSID into a SIP
HRESULT RegisterAClsid(LPTSTR pszClsid)
{
LONG lRC;
HKEY hClsidKey;
HKEY hGuidKey;
HKEY hRegKey;
DWORD dwDisposition;

lRC = RegOpenKey(HKEY_CLASSES_ROOT, TEXT("CLSID"), &hClsidKey);
if (ERROR_SUCCESS != lRC)
{
OutputDebugString(TEXT("Failed to create the CLSID key"));
return E_FAIL;
}

// create the base key for the OLE object under clsid
lRC = RegCreateKeyEx(hClsidKey, pszClsid,
0, TEXT("REG_SZ"), 0, KEY_WRITE, NULL, &hGuidKey, &dwDisposition);
if (ERROR_SUCCESS != lRC)
{
RegCloseKey(hClsidKey);
return E_FAIL;
}

// now set the named value under this key
lRC = RegSetValueEx(hGuidKey, NULL, 0, REG_SZ, (BYTE*) PENINPUT,
sizeof(TCHAR)*(1+_tcslen(PENINPUT)));
if (ERROR_SUCCESS != lRC)
{
RegCloseKey(hGuidKey);
RegCloseKey(hClsidKey);
return E_FAIL;
}

// now, create the standard OLE server key
lRC = RegCreateKeyEx(hGuidKey, TEXT("InprocServer32"),
0, TEXT("REG_SZ"), 0, KEY_WRITE, NULL, &hRegKey, &dwDisposition);
if (ERROR_SUCCESS != lRC)
{
RegCloseKey(hGuidKey);
RegCloseKey(hClsidKey);
return E_FAIL;
}

// now set the named value under this key
lRC = RegSetValueEx(hRegKey, NULL, 0, REG_SZ, (BYTE*) EXEPATH,
sizeof(TCHAR)*(1+_tcslen(EXEPATH)));
if (ERROR_SUCCESS != lRC)
{
RegCloseKey(hRegKey);
RegCloseKey(hGuidKey);
RegCloseKey(hClsidKey);
return E_FAIL;
}
RegCloseKey(hRegKey);

// this is the *only* thing which marks this as a sip
lRC = RegCreateKeyEx(hGuidKey, TEXT("IsSIPInputMethod"),
0, TEXT("REG_SZ"), 0, KEY_WRITE, NULL, &hRegKey, &dwDisposition);
if (ERROR_SUCCESS != lRC)
{
RegCloseKey(hGuidKey);
RegCloseKey(hClsidKey);
return E_FAIL;
}

// now set the named value under this key
lRC = RegSetValueEx(hRegKey, NULL, 0, REG_SZ, (BYTE*) STRING_ONE,
sizeof(TCHAR)*(1+_tcslen(STRING_ONE)));
if (ERROR_SUCCESS != lRC)
{
RegCloseKey(hRegKey);
RegCloseKey(hGuidKey);
RegCloseKey(hClsidKey);
return E_FAIL;
}
RegCloseKey(hRegKey);

// this controls the icon we see in the sip menu
lRC = RegCreateKeyEx(hGuidKey, TEXT("DefaultIcon"),
0, TEXT("REG_SZ"), 0, KEY_WRITE, NULL, &hRegKey, &dwDisposition);
if (ERROR_SUCCESS != lRC)
{
RegCloseKey(hGuidKey);
RegCloseKey(hClsidKey);
return E_FAIL;
}

// now set the named value under this key
lRC = RegSetValueEx(hRegKey, NULL, 0, REG_SZ, (BYTE*) ICON_NAME,
sizeof(TCHAR)*(1+_tcslen(ICON_NAME)));
if (ERROR_SUCCESS != lRC)
{
RegCloseKey(hRegKey);
RegCloseKey(hGuidKey);
RegCloseKey(hClsidKey);
return E_FAIL;
}
RegCloseKey(hRegKey);

RegCloseKey(hGuidKey);

RegCloseKey(hClsidKey);

return S_OK;
}

/////////////////////////////////////////////////////////////////////////////
// DllRegisterServer - Adds entries to the system registry

STDAPI DllRegisterServer(void)
{
HRESULT hr = S_OK;

hr = RegisterAClsid(TEXT("{42429695-AE04-11D0-A4F8-00AA00A749B9}"));
return hr;

}

/////////////////////////////////////////////////////////////////////////////
// DllUnregisterServer - Removes entries from the system registry

STDAPI DllUnregisterServer(void)
{
_Module.UnregisterServer();
return S_OK;
}
happytt 2007-11-04
  • 打赏
  • 举报
回复
如果能加入五笔输入法那是相当不错了.

19,503

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧