荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标  题: [转载] [技术]Win95如何进行端口读写            kingchurch (转寄)
发信站: BBS 荔园晨风站 (Sat Dec  4 14:40:26 1999), 站内信件

【 以下文字转载自 tang 的信箱 】
【 原文由 tang.bbs@bbs.net.tsinghua.edu.cn 所发表 】
发信人: bluesea (蓝海), 信区: Programming
标  题: Re: 请问Win95中怎样读泻IO端口?outportb 不能用了?
发信站: BBS 水木清华站 (Sun Dec 14 21:35:45 1997)

【 在 wlm (wlm) 的大作中提到: 】
: 请问Win95中怎样读泻IO端口?outportb 不能用了?

(1) You can read/write a port with inport()/outport() functions
    or inline assembly within a 16-bit application or DLL in
    Windows 95;

(2) Access the hardware resources by the standard way of VxD.
    This is the recommended method of Win32 development. To do
    this, u may have know something about DDK;

(3) Some third-party Tools such as Windriver or WinTools ...
    may also help. You have to gather more information from inet;

(4) For a compromise, your Win32 application can also call a 16-bit
    DLL in witch u can use traditional I/O method. This's called
    'Thunk' technology and u can get more knowledge from online
    help and docs of MSVC 4.x-5.x. There are 3 difference thunk,
    for Win32s, Win32 of 95 and Windows NT 4.x and they aren't
    compatible very well each other.

(5) Also, a MS-DOS driver (.sys in config.sys or exe/com in autoexec)
    can work with Windows 95 quite well. you can control the driver
    by software interrupt (int xxx) or by the way of a piece of
    shared MS-DOS memory. This method is not suited for the
    high-speed / large-quantity usage.

--
_______________________________________________________________________________

               蓝色是因为白色太浓的缘故,而白色拥有了所有的色彩……
_______________________________________________________________________________

※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 202.112.145.96]
--
※ 转载:·BBS 荔园晨风站 bbs.szu.edu.cn·[FROM: 210.39.3.94]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店