如何将汉字转化为整数??

 所属目录:Java   |   类型:技术问答   |   时间:2007-05-21
 问题:

比如对方输入一个人的名字,接受它并将它转化为整数进行某种运算  
   
 

· 网友精彩回答:

发表者:doodu

ascw   函数  
  返回   unicode   字符代码    
   
  debug.print   ascw("你")  
  debug.print   ascw("好")  
   
 

发表者:of123

private   declare   sub   copymemory   lib   "kernel32"   alias   "rtlmovememory"   (destination   as   any,   source   as   any,   byval   length   as   long)  
   
   
  private   sub   command1_click()  
  dim   strtmp   as   string   *   4  
  dim   bytarr()   as   byte  
  dim   lngnum   as   long  
   
  strtmp   =   text1  
  bytarr   =   strconv(strtmp,   vbfromunicode)  
  copymemory   lngnum,   bytarr(0),   8  
  msgbox   lngnum  
  end   sub  
 

.
处理 SSI 文件时出错
© 2006-2008 All Rights Reserved