2009年6月28日日曜日

全角、半角変換(C#)

How to set a Windows hook in Visual C#
http://www.cnitblog.com/zyb/archive/2005/05/25/199.aspx
http://www.autohotkey.com/docs/misc/SendMessageList.htm

Global Mouse and Keyboard Library
http://www.codeproject.com/KB/system/globalmousekeyboardlib.aspx

Bits, Bytes, Words, and Long Words
http://developer.apple.com/documentation/mac/OSUtilities/OSUtilities-39.html

Logical operators toggle《コンピュ》トグル:(オン・オフなど)二方向に切り替えできる論理スイッチ
http://msdn.microsoft.com/en-us/library/aa691306(VS.71).aspx

unmanaged memory C#→marshall

C#で全角、半角変換
Microsoft.VisualBasic.Strings.StrConv(string str, Microsoft.VisualBasic.VbStrConv conversion, int localeId);
string str = Microsoft.VisualBasic.Strings.StrConv(str, Microsoft.VisualBasic.VbStrConv.Wide, 0);

全角のバイト数を取得
static Encoding sjisEnc = Encoding.GetEncoding("Shift_JIS");int num = sjisEnc.GetByteCount(str);

0 件のコメント:

コメントを投稿