vb.net 调用c++ dll的问题
用c++写了一个dll动态库,在vb.net 控制太应用程序里能正常运行,但是在windows窗体应用程序里就不能正常运行,总是报
System.BadImageFormatException
HResult=0x8007000B
Message=试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)
Source=Vb_Camera_FrameConsoleApp1
StackTrace:
在 Vb_Camera_FrameConsoleApp1.Module1.getCameraImg(String& a, Int64 camera_count, Int64 cameraimg_time)
在 Vb_Camera_FrameConsoleApp1.Module1.Main(String[] args) 在 D:\workspace_c++\Vb_Camera_FrameConsoleApp1\Vb_Camera_FrameConsoleApp1\Module1.vb 中: 第 26 行
这个错误,请高手指点!!!!