10 2010 档案

在XCode中运用CPPUnit
摘要:Use CPPUnit with XCode 1. Download cppunti from sourceforge 2. Compile and install ./configure make install 3. Create new C++ Tool project and add source files in cppunit/examples/simple except SimplePlugIn.cpp 4. Add the library libcppunit.dylib (/usr/local/lib) in the project also 5. Check the... 阅读全文

posted @ 2010-10-28 22:00 c语言源码 阅读(229) 评论(0) 推荐(0)

STL::List的对象存储与释放
摘要:写了一个小程序,来检查一下List中如何管理存储的对象。#include "stdafx.h"#include <list>#include <iostream>using namespace std;class MyClass{ public: int nMember; int * pMember; public: MyClass(void){cout<<"New my Class"<<endl;nMember = 0;pMember = &nMember;cout<<" p 阅读全文

posted @ 2010-10-17 22:13 c语言源码 阅读(347) 评论(0) 推荐(0)

小技巧:不显示打印对话框直接打印网页到打印机
摘要:找了一段时间,发现了MSHTML没有提供绕开打印对话框的方法。昨天试了下一个Windows Web Browser Control,居然可以了,下面做个记录:m_Browser.Navigate(sHttpAddress, &vtNULL, &vtNULL, &vtNULL, &vtNULL);m_Browser.ExecWB(OLECMDID_PRINT,OLECMDEXECOPT_DONTPROMPTUSER,NULL,NULL);或许有人也会遇到这样的问题! 曾看过一些人提到的想法,还需要捕获到Printer Dialog,然后传送消息,有点麻烦。 阅读全文

posted @ 2010-10-10 21:25 c语言源码 阅读(333) 评论(0) 推荐(0)

导航