有没有人用过DSF,如何引用DSF? Device Simulation Framework
本帖最后由 douniwan5788 于 2012-03-12 17:00:28 编辑 如何引用DSF Object Library v1.0 ?MSDN说可以直接添加引用:
Reference Pre-Generated COM Class Wrappers.
These wrappers are a part of the Managed Interop Assemblies package that is installed through the DSF installation. To install this package, follow these steps:
Copy the DSF installation package (DSFx86Runtime.msi or DSFx64Runtime.msi) from the WDK media to the computer where you intend to build your test applications. This computer is referred to as the build computer.
Depending on the CPU platform of the build computer, run the DSF installation package by double-clicking DSFx86Runtime.msi or DSFx64Runtime.msi.
Read and accept the EULA.
Expand the drop-down menu for Device Simulation Framework and select Entire feature will be unavailable.
Click Next and then click Install to install the pre-generated COM class wrappers. This also installs the DSF Managed Interop Assemblies into the global assembly cache (GAC).
Note To avoid conflicts, you must only install the Managed Interop Assemblies package in the build computer. If the Device Simulation Framework has been previously installed, you must uninstall it from the build computer.
Note Pre-generated COM class wrappers are only available for the SoftEHCI, SoftUSB, DSF, and SoftUSBLoopback COM objects. You must use one of the other methods described in this topic to reference other DSF objects or libraries.
In order to reference the DSF Managed Interop Assemblies that were installed in the GAC, you must copy these assemblies to the Public Assemblies folder before you can access them through the.NET References tab in Visual Studio. For more information, see How to: Add or Remove References in Visual Studio.
可是IDE中右键添加引用总显示黄叹号,双击提示系统无法找到指定的引用。
DSF:微软的虚拟驱动框架
[最优解释]
COM Class Wrappers 是封装后给 .Net 用的,你应该直接引用原始 COM。
[其他解释]
已经解决了,用VB,不用引用,直接使用就行了