Trending Up...

Trending Up...

MFC tips 1

1)View/SubWindow communication:--Inside SubWindowCMyObject *pObject = new CMyObject;pObject->SetProperties();m_pView->PostMessage(WM_XXX, (WPAR...

2008-04-30 13:38:00

阅读数 672

评论数 0

bug in MFC Ocx BEGIN_DISPATCH_MAP

An wrong BEGIN_DISPATCH_MAPdispidOnEvent1 = 1,dispidFunction1 = 1OnEvent1 is ocx event, Function1 is ocx functionBEGIN_DISPATCH_MAP(CMyOcx2Ctrl, COle...

2008-04-21 08:31:00

阅读数 2617

评论数 0

Do not use shared variable to check thread status

//excerpt from Windows via c/c++, chapter8, Advanced Thread SynchronizationA Technique to AvoidWithout synchronization objects and the operating syst...

2008-04-01 09:15:00

阅读数 943

评论数 0

how to compile beginthreadex

1) #include 2) Project property -> C/C++ -> Code Generation -> Runtime Library  /MTd (for debug)  /MT (for release)

2008-04-01 09:14:00

阅读数 536

评论数 0

_beginthread, _beginthreadex, CreateThread, AfxBeginThread

_beginthread, _beginthreadex, CreateThread, AfxBeginThreadCreateThread是Windows的API函数,提供操作系统级别的创建线程的操作。_beginthreadex和_beginthread在回调入口函数之前进行一些线程相关的CR...

2008-04-01 09:13:00

阅读数 1144

评论数 0

Counting number of line in a file

private long CountLine(string fileName){    using(StreamReader sr = new StreamReader(                new FileStream(fileName,FileMode.Open,          ...

2008-04-01 09:10:00

阅读数 584

评论数 0

C# let textbox only accept numeric input

private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e){    e.Handled = !        (char.IsDigit(e.KeyChar) || e.KeyCha...

2008-04-01 09:10:00

阅读数 1037

评论数 1

提示
确定要删除当前文章?
取消 删除
关闭
关闭