首页
社区
课程
招聘
[旧帖] [求助]lstrcmpA返回FFFFFFFF表示什么意思? 0.00雪花
发表于: 2008-6-16 14:54 6809

[旧帖] [求助]lstrcmpA返回FFFFFFFF表示什么意思? 0.00雪花

2008-6-16 14:54
6809
我输入的注册号和它要比较的号是一样的,怎么总是返回FFFFFFFF呢?

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 246
活跃值: (23)
能力值: ( LV6,RANK:90 )
在线值:
发帖
回帖
粉丝
2
The lstrcmp function compares two character strings. The comparison is case sensitive.

int lstrcmp(

    LPCTSTR lpString1,        // address of first string
    LPCTSTR lpString2         // address of second string
   );       

Parameters

lpString1

Points to the first null-terminated string to be compared.

lpString2

Points to the second null-terminated string to be compared.

Return Values

If the function succeeds and the string pointed to by lpString1 is less than the string pointed to by lpString2, the return value is negative; if the string pointed to by lpString1 is greater than the string pointed to by lpString2, it is positive. If the strings are equal, the return value is zero.

说明比较的两个字串不等且前者长度比后者短.
2008-6-16 16:13
0
雪    币: 201
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
FFFFFFFF就是-1咯 返回负数 自己看原因吧
2008-6-17 20:50
0
游客
登录 | 注册 方可回帖
返回
//