要用pb调用一个dll 在ole object insert 中找到这个dll 加载成功 并用regserv32 也加载成功 但是ole中始终看不到这个类
用vs2010 引用这个dll 的实例是这样写的
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using FULLTUNNELCONTROLLib;
using System.Runtime.InteropServices;
using System.Threading;
namespace qxt
{
public delegate void CallBack(String BS_flag, String BS_svalue1, String BS_svalue2, String BS_svalue3, String BS_svalue4, String BS_svalue5, String BS_svalue6, String BS_svalue7, String BS_svalue8);
public partial class Form1 : Form
{
public Form1(){
InitializeComponent();
textBox2.Text = "";
textBox3.Text = "";
this.textBox4.Text = "";
}
private void button1_Click(object sender, EventArgs e)
{
FullTunnelServiceControl ctr1 = new FullTunnelServiceControl();
ctr1 = new FullTunnelServiceControl();
string strControl_type = "connect";
string strName =this.textBox2.Text.Trim();
string strPwd = this.textBox3.Text.Trim();
string strServerip = "";
string strServerport = "";
object hr = ctr1.StartAndManageConnect_User(ref strName, ref strPwd, ref strServerip, ref strServerport);
if (hr.ToString() == "0")
{ //链接成功
SetText( "连接认证成功");
}
else
SetText(hr.ToString());
}
private void button2_Click(object sender, EventArgs e)
{
/* string strControl_type = "send";
string strName = ""; //用户名
string strPwd = ""; //密码
string strSenderr = "";
string strServerip = "";
string strServerport = "";
string strSendtype = "1";
string strBackstr = "1";
string strSourcecode="";
string strDestcode = ""; //发送的号码
string strContent="";
string strComid="1";
string strNeedreceipt="1";
string strAccessNum="";
string seqID;
FullTunnelServiceControl ctr1 = new FullTunnelServiceControl();
object oOut = null;