C#调用VB编写的ActiveX控件时提示文件未找到
我在VB中编写了一个VC4000视频采集的控件,这个ocx中调用了Sa7134Capture.dll的函数,在C#中引用自己编写的ocx控件,运行程序的时候提示无法找到Sa7134Capture.dll,我将Sa7134Capture.dll拷贝到Debug目录下也不行,在VB中修改调用Sa7134Capture.dll函数的申明为绝对路径,例如:
Declare Function VCASetVidCapDateTimeOSD Lib "C:\Sa7134Capture.dll"(ByVal dwCard As Long, ByVal bEnableOSD As Long, ptTopLeft As POINT) As Boolean
在C#中运行依然提示无法找到C:\Sa7134Capture.dll,有什么方法可以解决么?谢谢!