110,545
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using yh_interface;
using System.Reflection;
namespace YH
{
public partial class ff : Form
{
// System.Type yh = Type.GetTypeFromProgID("YinHai.SCMYInterface");
// Object yhObject;
public ff()
{
InitializeComponent();
}
//业务接口函数
public static short li_appcode = -1;
public static string ls_appmsg = "";
public static string a = "";
//初始化接口
public static bool JK_Init()
{
COClass_n_yh_interface YH = new COClass_n_yh_interface();
// System.Type yh = Type.GetTypeFromProgID("YinHai.SCMYInterface");
YH.yh_interface_init(a, li_appcode, ls_appmsg);
if (ff.li_appcode >= 0)
{
return true;
}
return false;
}
#region 初始化
private void button1_Click(object sender, EventArgs e)
{
JK_Init();
}
#endregion