阅读:1388回复:4
USB连接问题
一个USB设备,插上PDA后,如果没有驱动,它应该弹出一个messagebox来,提示批定驱动,是这样吗?我这个设备,连上去后一点反应也没有为什么?
我没有指定dll,怎么会调用我的USBDeviceAttach,连USBInstallDriver也没执行。请问为什么?哪位大吓帮帮忙,万分感激!! |
|
沙发#
发布于:2003-04-25 21:54
ya, absolutly!
first you must know your device\'s class and subclass,or your device name, and you must export standard io function, you can refer .def file. and many setting you should configure in registry. like define CLASS 0X123 SUBCLASS 0X234 and you must write same values in the registry. then system will find your device by registry |
|
板凳#
发布于:2003-04-26 00:51
看起来是你的PDA中没有USB Host的驱动,或者就是USB接口的硬件问题,否则没有驱动一定会弹出MessageBox。
如果你要让系统调用你的Attach函数,那就一定要设注册表,最简单的方法是只设PID,例如 HKEY_LOCAL_MACHINE\\Drivers\\USB\\LoadClients\\PID\\Default\\Default\\Default\\DLL = driver.dll. |
|
地板#
发布于:2004-06-19 23:00
楼上讲得好,我也回去试试.
|
|
地下室#
发布于:2004-06-22 18:10
请你讲详细点,也许我能帮你
|
|
|