Home > database >  Pb call how to invoke the MultiByteToWideChar () function
Pb call how to invoke the MultiByteToWideChar () function

Time:12-13

Pb call how to invoke the MultiByteToWideChar () function

CodePudding user response:


/* statementThe function int MultiByteToWideChar (uint codepage, ulong dwflags, ref string lpmultibytestr, int cchmultibyte, ref long lpwidecharstr, int cchwidechar) library "kernel32. DLL 
"*/
//pick up Chinese characters unicode
Long ll_len_old, ll_len_new
Long ll_return
String ls_char

Ls_char=':'
Ll_len_old=len (ls_char)
Ll_len_new=2 * ll_len_old
MultiByteToWideChar (0, 0, ls_char ll_len_old, ll_return, ll_len_new)
If ll_return & lt; 0 then ll_return=65536 - abs (ll_return)
Messagebox (' ', a string (ll_return))

CodePudding user response:

http://search.download.csdn.net/search/dw2xls
To find a download here, inside a user object
N_cst_unicode
Useful to this function
  • Related