首页
社区
课程
招聘
[求助]请教一下如何在RadASM把文本型转化为整数型!谢谢!
发表于: 2008-12-24 20:51 4270

[求助]请教一下如何在RadASM把文本型转化为整数型!谢谢!

2008-12-24 20:51
4270
请教一下如何在RadASM把文本型转化为整数型!谢谢!刚刚学用RadASM不久,汇编就更差了,希望高手能指点一二!
invoke  GetDlgItemText,hWin,IDC_NAME,addr @szBuffer1,sizeof @szBuffer1
  
这样获取了编辑框的文本后何把它转化为整数型啊!如编辑框上是:123,都不懂如何才能转化为整数型了,在高级语言还好说但是汇编就真的是不行了,DELPHI就是STRTOINT.汇编里也有这样的函数吗?谢谢关注!

[课程]Android-CTF解题方法汇总!

收藏
免费 0
支持
分享
最新回复 (6)
雪    币: 454
活跃值: (1673)
能力值: ( LV3,RANK:30 )
在线值:
发帖
回帖
粉丝
2
GetDlgItemInt
2008-12-25 00:12
0
雪    币: 249
活跃值: (10)
能力值: ( LV3,RANK:30 )
在线值:
发帖
回帖
粉丝
3
invoke atoi,addr @szBuffer1
pop ecx
2008-12-25 00:36
0
雪    币: 439
活跃值: (106)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
学习,,一直不会
2008-12-25 01:22
0
雪    币: 325
活跃值: (97)
能力值: ( LV13,RANK:530 )
在线值:
发帖
回帖
粉丝
5
StrToInt Function

--------------------------------------------------------------------------------

Converts a string representing a decimal value to an integer. The StrToLong macro is identical to this function.

Syntax

int StrToInt(          LPCTSTR lpSrc
);
Parameters

lpSrc
A pointer to the null-terminated string to be converted. A valid string representing a decimal value contains only the characters 0-9 and must have the following form to be parsed successfully.
(optional white space)(optional sign)(one or more decimal digits)

The optional sign can be the character '-' or '+'; if omitted, the sign is assumed to be positive.

Return Value

Returns the int value represented by lpSrc. For instance, the string "123" returns the integer value 123.

Remarks

If the string pointed to by lpSrc contains an invalid character, that character is considered the end of the string to be converted and the remainder is ignored. For instance, given the invalid decimal string "12b34", StrToInt only recognizes "12" and returns that integer value.

Function Information

Minimum DLL Version shlwapi.dll version 4.71 or later
Custom Implementation No
Header shlwapi.h
Import library shlwapi.lib
Minimum operating systems Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0
Unicode Implemented as ANSI and Unicode versions.  

See Also

StrToIntEx

--------------------------------------------------------------------------------
2008-12-26 00:45
0
雪    币: 193
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
汗,直接手工都好转啊!
2008-12-26 08:30
0
雪    币: 264
活跃值: (11)
能力值: ( LV9,RANK:250 )
在线值:
发帖
回帖
粉丝
7
转为16进制我倒是搞过 应该差不多吧~
2008-12-27 14:45
0
游客
登录 | 注册 方可回帖
返回
//