P/Invoke能够在asp.net中使用(2)
点击次数:32 次 发布日期:2008-11-26 12:37:28 作者:源代码网
|
源代码网推荐 59 源代码网推荐 60 /**//// <summary> 源代码网推荐 61 /// 设计器支持所需的方法 - 不要使用代码编辑器修改 源代码网推荐 62 /// 此方法的内容。 源代码网推荐 63 /// </summary> 源代码网推荐 64 private void InitializeComponent() 源代码网推荐 65 { 源代码网推荐 66 this.Button1.Click += new System.EventHandler(this.Button1_Click); 源代码网推荐 67 this.Load += new System.EventHandler(this.Page_Load); 源代码网推荐 68 源代码网推荐 69 } 源代码网推荐 70 #endregion 源代码网推荐 71 源代码网推荐 72 private void Button1_Click(object sender, System.EventArgs e) 源代码网推荐 73 { 源代码网推荐 74 this.TextBox2.Text = myservice.Who(this.TextBox1.Text); 源代码网推荐 75 源代码网推荐 76// string pText = "Hello World!"; 源代码网推荐 77// string pCaption = "PInvoke Test"; 源代码网推荐 78// MessageBox(0, pText, pCaption, 0); 源代码网推荐 79 源代码网推荐 80 //MessageBeep(0x00000010); 源代码网推荐 81 Beep(Convert.ToUInt32(txtQ.Text),Convert.ToUInt32(txtD.Text)); 源代码网推荐 82 源代码网推荐 83 } 源代码网推荐 84 } 源代码网推荐 85} 源代码网推荐 86 其中MessageBox.Show(...)执行时就不动了,内部机理也不名所以,若是能够SHOW的话,那岂不是不用ACTIVEX了吗,一己之见而已了。根据理论是不行的,在。NET3.0(WinFX)可以将Win&Web集成到一起,那时将不分什么了,太恐怖了。 源代码网推荐 源代码网推荐 做人要厚道,请注明转自酷网动力(www.ASPCOOL.COM)。 源代码网推荐 源代码网供稿. |
