
Visual C++
syd_programming
这个作者很懒,什么都没留下…
展开
-
FileDialog文件过滤
char szFilters[] = "DBU Files (*.dbu)|*.dbu||"; CFileDialog dlg(TRUE, "dbu", "*.dbu", OFN_FILEMUSTEXIST, szFilters, this); if (dlg.DoModal() == IDOK) { m_strScriptPath原创 2009-07-22 14:45:00 · 425 阅读 · 0 评论 -
通过匿名管道在进程间双向通信
由于匿名管道只能是单向的,因此要建立双向通信必须建立2个管道。父程序代码:int main(){ //定义四个句炳保留两个管道的信息 HANDLE hReadPipe1, hWritePipe1, hReadPipe2, hWritePipe2; SECURITY_ATTRIBUTES sat; STARTUPINFO startupinfo;原创 2009-06-21 09:19:00 · 887 阅读 · 0 评论