|
[求助]如何判断外部选择框是否被选中
发送 BM_GETSTATE 消息 |
|
[求助]这个ocx控件VB怎么调用(带源码).
真没人能帮忙吗? |
|
[求助]硬盘扇区读写不了。麻烦呀。
去掉1f1也不行呀。 这里有介绍。但是按他方法不行 http://wiki.osdev.org/ATA_PIO_Mode 48 bit PIO Reading sectors using 48 bit PIO is very similar to the 28 bit method: (Notes: A sector count of 0 means 65536 sectors = 32MB. Try not to send bytes to the same IO port twice in a row. Doing so is much slower than doing two outb() commands to different IO ports. The important thing is that the high byte of the sector count, and LBA bytes 4, 5, & 6 go to their respective ports before the low bytes.) Assume you have a sectorcount word and a 6 byte LBA value. Mentally number the LBA bytes as 1 to 6, from low to high. Send the 2 byte sector count to port 0x1F2 (high byte first), and the six LBA byte pairs to ports 0x1F3 through 0x1F5 in some appropriate order. An example: Send 0x40 for the "master" or 0x50 for the "slave" to port 0x1F6: outb(0x1F6, 0x40 | (slavebit << 4)) outb (0x1F2, sectorcount high byte) outb (0x1F3, LBA4) outb (0x1F4, LBA5) outb (0x1F5, LBA6) outb (0x1F2, sectorcount low byte) outb (0x1F3, LBA1) outb (0x1F4, LBA2) outb (0x1F5, LBA3) Send the "READ SECTORS EXT" command (0x24) to port 0x1F7: outb(0x1F7, 0x24) Note on the "magic bits" sent to port 0x1f6: Bit 6 (value = 0x40) is the LBA bit. This must be set for either LBA28 or LBA48 transfers. It must be clear for CHS transfers. Any drive that can support LBA48 will ignore all other bits on this port for an LBA48 command. You can set them if it will make your code cleaner (to use the same magic bits as LBA28). To write sectors in 48 bit PIO mode, send command "WRITE SECTORS EXT" (0x34), instead. (As before, do not use REP OUTSW when writing.) And remember to do a Cache Flush after each write command completes. After the command byte is sent, transfer each sector of data in exactly the same way as for a 28 bit PIO Read/Write command. 请高手帮帮呀。。 |
|
[求助]这段代码怎么老是5秒后蓝屏
解决了,谢谢各位。还有点不懂,在dpc回调函数中我不再使用这些局部变量。怎么也会……高手说一下这个机理吧? |
|
[求助]push 4 改为 push 1234 后程序崩溃是怎么回事呢?
我认为应该是这样的: push 4 的机器码为2个字节 而 push 1234为5个字节 可能把后面的指令给覆盖,就出错了。看看是不是这个原因。 可以用跳转法跳到一个白的地方,补上代码,再跳回来看行不行。 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值