摘要:
1 OpenFileDialog ofd = new OpenFileDialog(); 2 ofd.Filter = "(*.mp4)|*.mp4|(*.*)|*.*"; 3 ofd.RestoreDirectory = true; 4 if (ofd.ShowDialog() == Dialog 阅读全文
摘要:
http://blog.sina.com.cn/s/blog_4f925fc30102e9ze.html在创建一个数据库的过程中,必须依照一定的准则,这些准则被称为范式,从第一到第六共六个范式,一般数据库设计只要遵循第一范式,第二范式,和第三范式就足够了。满足这些规范的数据库是简洁的、结构明晰的,同... 阅读全文
摘要:
select sum(`value`) from testtable where value != 'error' AND type ='b' in (select DISTINCT(type) from testtable);SELECT type,subtype,SUM(value) AS TO... 阅读全文
摘要:
int s_max = 0;for (int i = 0; i ar[i]) { int temp = ar[i]; ar[i] = ar[j]; ar[j] = temp; } }}if (ar.Length >= 2){ s_max= ar[ar.Length - 2];}另一种方法 for ... 阅读全文
摘要:
int i = 2000;object o = (object)i; i= 2001;int j = (int)o;Console.WriteLine("{0},{1},{2}", i, o, j); 结果:2001,2000,2000 解读:object o 为装箱的操作,int j为拆箱操作。 ... 阅读全文
摘要:
public abstract class abstractlist {public abstractlist(){Console.WriteLine("A");}public void ceshi(){Console.WriteLine("A.FUN()");} }public class Cla... 阅读全文
摘要:
Vidyo32.VidyoClientInEventLogin Login = new Vidyo32.VidyoClientInEventLogin(); Login.portalUri = this.tbxIP.Text.Trim(); //"http://kaunas.vidyo.scandi... 阅读全文
摘要:
此例是把C#结构传给C++C++:typedef struct VidyoClientInEventGroupChat_{ /*! Message (contents) to be sent to all remote participants */ char message[MAX_CHAT_ME... 阅读全文
摘要:
C++结构体typedef struct VidyoClientRequestGetWindowsAndDesktops_{ /*! The number of application windows currently open */ VidyoSizeT numApplicationWindow... 阅读全文
摘要:
Winformthis.Invoke(new Action(() => { }));Wpf this.Dispatcher.Invoke(DispatcherPriority.Normal, new Action(() => { //调用主线程 ButtonOkClick(this.msg); })... 阅读全文