怎么实现这个功能大家肯定早都知道了,放上来是给自己留个备份使用:
private void button1_Click_1(object sender, System.EventArgs e)...{ string[] servers = DBGrep.SqlLocator.GetServers(); foreach ( string s in servers ) ...{ this.listBox1.Items.Add(s); }}类的代码using System;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace DBGrep...{ public class SqlLocator ...{ [DllImport("odbc32.dll")] private static extern short SQLAllocHandle(short hType, IntPtr inputHandle, out IntPtr outputHandle);[1] [2] [3] [4] [5] [6] 下一页
类的代码using System;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace DBGrep...{ public class SqlLocator ...{ [DllImport("odbc32.dll")] private static extern short SQLAllocHandle(short hType, IntPtr inputHandle, out IntPtr outputHandle);[1] [2] [3] [4] [5] [6] 下一页
using System;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace DBGrep...{ public class SqlLocator ...{ [DllImport("odbc32.dll")] private static extern short SQLAllocHandle(short hType, IntPtr inputHandle, out IntPtr outputHandle);[1] [2] [3] [4] [5] [6] 下一页
[1] [2] [3] [4] [5] [6] 下一页