在USER32.DLL中无法找到findwindow的入口点(代码如下)
usingSystem.Runtime.InteropServices;namespaceDX_testUsers{publicpartialclassForm1:For...
using System.Runtime.InteropServices;
namespace DX_testUsers
{
public partial class Form1 : Form
{
[DllImport("user32.dll")]
public static extern IntPtr FindWindow(string ClassName, string title);
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
IntPtr IP=FindWindow(ClassName.Text, title.Text);
MessageBox.Show(IP.ToString());
}
}
} 展开
namespace DX_testUsers
{
public partial class Form1 : Form
{
[DllImport("user32.dll")]
public static extern IntPtr FindWindow(string ClassName, string title);
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
IntPtr IP=FindWindow(ClassName.Text, title.Text);
MessageBox.Show(IP.ToString());
}
}
} 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询