摘要: 首先需要编写一个类,实现IDispatch接口,然后把这个类传进去,代码如下:#ifndef XMLHTTPEVENTSINK_H_#define XMLHTTPEVENTSINK_H_ #include "msxml.h"#include #include #include class XMLHttpEventSink : public IDispatch{public: XMLHttp... 阅读全文
posted @ 2008-11-13 16:51 袁晓平 阅读(1319) 评论(0) 推荐(0) 编辑
摘要: 类的数据成员指针及类的成员函数指针代码如下:struct MemberPointer { int m_a; char* getname(int parama) const; MemberPointer() { m_a = 0; }}; char* MemberPointer::getname(int parama) const { return "hello, my name is member... 阅读全文
posted @ 2008-11-13 16:49 袁晓平 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1、导入的Service.cpp// ************************************************************************ //// The types declared in this file were generated from data read from the// WSDL File described below:// W... 阅读全文
posted @ 2008-11-13 16:48 袁晓平 阅读(1532) 评论(0) 推荐(0) 编辑
摘要: --=============================================================================================--单表查询调用--***********************************************************************************************... 阅读全文
posted @ 2008-11-13 16:46 袁晓平 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1、点击开始-运行,输入oleview.exe或从vs2003打开工具-OLE/COM 对象查看器2、使用该工具导出Micrisoft VBScript RegluarExpression为vbscript.idl4、midl vbscript.idl生成vbscript.tlb,很可能会拷到VC目录下,如D:\Program Files\Microsoft Visual Studio 8\VC ... 阅读全文
posted @ 2008-11-13 16:45 袁晓平 阅读(421) 评论(1) 推荐(0) 编辑
摘要: 1、选择添加类--TypeLib中的MFC类。2、选择从注册表中添加,位置为C:\windows\system32\vbscript.dll3、生成类文件CMatch.h CMatch2.h CMatchCollection.h CMatchCollection2.h CRegExp.h CRegExp2.hCSubMatches.h4、将#import "c:\\windows\\system3... 阅读全文
posted @ 2008-11-13 16:43 袁晓平 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 头文件#ifndef ioshelperH#define ioshelperH #include #include //--------------------------------------------------------------------------- class IOHelper{public: void CopyFiles(char* srcPath, char* destP... 阅读全文
posted @ 2008-11-13 16:40 袁晓平 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 方法一:void bytes_to_hexstr(char* dest, unsigned char* src) { char buffer[3]; for (int i = 0; i #include #include *const char* bytes_to_hexstr(unsigned char* buffer) {std::ostringstream oss;oss << std::... 阅读全文
posted @ 2008-11-13 16:39 袁晓平 阅读(875) 评论(0) 推荐(0) 编辑
摘要: FTP 协议命令实战 废话就不多说了,下面是用TELNET连接Serv-U测试成功的例子 下载文件---------------------------------------------------------------------------TELNET 127.0.0.1 21220 Serv-U FTP Server v4.0 for WinSock ready... USER ADMI... 阅读全文
posted @ 2008-11-13 16:38 袁晓平 阅读(329) 评论(0) 推荐(0) 编辑
摘要: C++软件下载 http://www.codeguru.cn/fav/soft.htmC函数实例参考手册 http://www.codeguru.cn/CPP/CExample/十部算法经典著作 合集 http://www.codeguru.cn/cpp/10book二级试题全集 http://www.codeguru.cn/cpp/2JiCShiTiJi高质量C++/C编程指南 http://w... 阅读全文
posted @ 2008-11-13 13:26 袁晓平 阅读(261) 评论(0) 推荐(0) 编辑