![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
天问
这个作者很懒,什么都没留下…
展开
-
C++奇怪的问题。 有关typedef 结构体。
今天想将TCL脚本解释器集成到应用程序。遇到一个奇怪的问题。问题代码如下:// TCLStduio.h : TCLStduio 应用程序的主头文件//#pragma once#ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"#endif#include "resource.h"原创 2010-05-03 14:49:00 · 1597 阅读 · 1 评论 -
一个简单的HTTP通讯的例子,使用了CInternetSession,CHttpConnection,CHttpFile三个类。
<br />void CBaseHttpDlg::OnBnClickedGet(){ // TODO: 在此添加控件通知处理程序代码 UpdateData(); CString txt; m_RichEditHttpRespone.GetWindowText(txt); CInternetSession InterSession; CHttpConnection* con = InterSession.GetHttpConnection(m_strURL);原创 2010-07-04 09:25:00 · 6185 阅读 · 2 评论 -
阻止RichEdit2.0的文件拖拽功能的方法
<br />调用RevokeDragDrop()删除原来的处理响应。<br />然后重载OnDropFiles() 函数,如果不想要原来的处理效果,这个函数中做完自己的处理,不要调用基类的响应函数就可以了。原创 2010-10-18 01:22:00 · 1309 阅读 · 0 评论 -
Creating a Child Process with Redirected Input and Output
<br />The example in this topic demonstrates how to create a child process using the CreateProcess function from a console process. It also demonstrates a technique for using anonymous pipes to redirect the child process's standard input and output h转载 2011-03-10 21:47:00 · 1211 阅读 · 0 评论 -
使用管道重定向方法获取windows下命令行执行程序结果
<br />关键代码:<br />void CRedirectPipeDlg::OnBnClickedRunCmd(){ // TODO: Add your control notification handler code UpdateData(); m_strOutput = ""; SECURITY_ATTRIBUTES sa; HANDLE hRead,hWrite; sa.nLength = sizeof(SECURITY_ATTRI原创 2011-04-04 13:43:00 · 5025 阅读 · 0 评论 -
命令行或者Console程序中文字颜色控制
void ConSetTextColor(unsigned char fontColor, unsigned char backColor) { /*GetStdHandle函数可以获得标准输入、输出、错误设备屏 幕缓冲区的句柄,*/原创 2011-09-04 17:32:27 · 1018 阅读 · 0 评论 -
windows下注册系统热键及系统托盘功能
以前写的抓图程序。里面实现了系统热键及系统托盘的功能。最近想做个东西用到这个功能,所以翻出来看看。// PrintScreenDlg.h : header file//#if !defined(AFX_PRINTSCREENDLG_H__9CB8322A_B3F原创 2011-09-04 19:19:47 · 1306 阅读 · 0 评论