基本的控件,1个按钮,1个文本框,1个列表框
有个dll。[DllImport("omrvfapi.dll",EntryPoint="OMR_Initialize",CharSet=CharSet.Ansi)]
public static extern int OMR_Initialize(string nComNo, long nBaudRate);
按钮代码:
string port;
int baud;
port = this.comboBox1.Text ;
baud = int.Parse(this.textBox1.Text);
if(OMR_Initialize(port,baud)<0) /// 调用机器,小于0为失败,否则成功
{
MessageBox.Show("初始化失败!");
return ;
}
else
{
MessageBox.Show("初始化成功!");
return ;
}现在运行后,点按钮,老是报错“无法加载 dll(omrvfdll.dll)”问题在哪里?
有个dll。[DllImport("omrvfapi.dll",EntryPoint="OMR_Initialize",CharSet=CharSet.Ansi)]
public static extern int OMR_Initialize(string nComNo, long nBaudRate);
按钮代码:
string port;
int baud;
port = this.comboBox1.Text ;
baud = int.Parse(this.textBox1.Text);
if(OMR_Initialize(port,baud)<0) /// 调用机器,小于0为失败,否则成功
{
MessageBox.Show("初始化失败!");
return ;
}
else
{
MessageBox.Show("初始化成功!");
return ;
}现在运行后,点按钮,老是报错“无法加载 dll(omrvfdll.dll)”问题在哪里?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货