我正在研究他们在Win XP中工作的这些项目1和2但是当我使用“regsvr32 c:\ inpout32.dll”在win7上注册inpout32.dll时,我得到的是错误
The module "c:\inpout32.dll" was loaded but the entry point DllRegisterServer was not found.
Make sure that "c:\inpout32.dll" is a valid DLL or OCX file and then try again.
我也遇到过一些论坛,讨论在win 7中控制并行端口的这个主题,但没有一个能够解决这个问题
using System;
using System.Runtime.InteropServices;
public class PortAccess
{
[DllImport("inpout32.dll", EntryPoint="Out32")]
public static extern void Output(int adress, int value);
}
并使用
PortAccess.Output(888, 255);
所以,如果有人帮我解决这个问题,我将不胜感激