|
[求助]一个奇怪的问题,SEND的大小实参必须用常量,若放在变量或寄存器中就报错。(之前扩大了系统缓冲区)
问题解决了 movzx ebx,cx;这句是重点,PUSH会压入4个字节,这样就OK了,因为高位的2个字节有数值 |
|
[求助]请问WIN32ASM中如何引用另外一个文件中的全局变量,怎么用extern呀?谢谢
各个模块间共用的变量、过程等要用伪指令说明 PUBLIC 标识符 [,标识符...] ;定义标识符的模块使用 EXTERN 标识符:类型 [,标识符:类型...] ;调用标识符的模块使用 其中标识符是变量名、过程名等; 类型是byte / word / dword(变量) 或near / far(过程)。 在一个源程序中,public/extern语句可以有多条。 各模块间的public/extern伪指令要互相配对,并且指明的类型互相一致。 模块一: public stCS public dwSequence .data? stCS CRITICAL_SECTION <?> stMsgQueue MSG_QUEUE_ITEM QUEUE_SIZE dup (<?>); QUEUE_SIZE 为100,(<?>)这个写法很重要,因为MSG_QUEUE_ITEM是结构体 dwMsgCount dd ? ;队列中当前消息数量 ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> .data dwSequence dd 1 ;消息序号,从1开始 模块二: .data extern dwSequence:DWORD .data? extern stCS:CRITICAL_SECTION hInstance dd ? hWinMain dd ? hListenSocket dd ? dwThreadCounter dd ? ;用于记录一共有多少个客户端与服务器端相连接(即:服务器端的工作线程总数) dwFlag dd ? F_STOP equ 0001h |
|
|
|
[求助]当我用WINXPDDK的2600目录时,报错(请指教)
我知道问题了,谢谢各位只点了,是DriverStudio那里没设置好 |
|
[求助]当我用WINXPDDK的2600目录时,报错(请指教)
问题是没有地方引用STRING.H呀。 |
|
[求助]不明白以下代码复制IO堆栈的作用
明白了,谢谢了 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值