Home > Net > C # initialization yinhai interface problems
C # initialization yinhai interface problems
Time:10-18
Initialization interface has been an error, find the reasons for a long time all don't understand, hope to have help to see what's going on, the code is as follows:
using System; Using System. Collections. Generic; Using System.Com ponentModel; Using System. The Data; Using System. Drawing; Using System. Linq; using System.Text; Using System. Windows. Forms; Using System. The Runtime. InteropServices; Using yh_interface; Using System. The Reflection;
The namespace YH { Public partial class ff: Form {
//System. The Type yh=the GetTypeFromProgID (" YinHai. SCMYInterface ");
//Object yhObject;
Public ff () { InitializeComponent(); } //business interface function Public static short li_appcode=1; Public static string ls_appmsg=""; Public static string a="";
//initialize interface
Public static bool JK_Init () { COClass_n_yh_interface YH=new COClass_n_yh_interface (); //System. The Type yh=the GetTypeFromProgID (" YinHai. SCMYInterface ");