上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页
摘要: BOOL PostSubmit(CString strUrl,const CString&strPara, CString&strContent){ BOOL bRet=FALSE; CString strInfo; try { CString strServer, strObject, strHeader, strRet; unsigned short nPort; DWORD dwServiceType; strInfo.Format("strUrl is %s\n",strUrl); printf("strUrl is %s\n", 阅读全文
posted @ 2013-08-29 17:00 CPYER 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 工具:vc2003 1 //引入相关头文件,连接动态库,定义全局变量。 2 3 //***************************************************** 4 #include "resource.h" 5 #include "xml/Markup.h" 6 #import "msxml4.dll" 7 8 #import "C:/Program Files/Common Files/MSSoap/Binaries/mssoap30.dll" exclude("IStr 阅读全文
posted @ 2013-08-29 16:40 CPYER 阅读(410) 评论(1) 推荐(0) 编辑
摘要: 1 if (OpenCom(sPort.m_iComPort, 9600))//打开串口 2 3 { 4 if (SMSInit() == 0) 5 { 6 7 CloseCom();//关闭串口 8 break; 9 }10 11 //添加处理代码。12 13 }14 15 //最后关闭串口16 17 CloseCom();//关闭串口 阅读全文
posted @ 2013-08-29 16:31 CPYER 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 客户端实现代码: 1 //引入头文件 2 3 #include 4 5 6 7 //客户端创建Socket///////////////////////////////////////////////////// 8 char recvClient[1024] = {0}; 9 10 WORD wVersionRequested;11 WSADATA wsaData;12 int err;13 14 wVersionRequested = MAKEWORD(1,1);15 16 err = WSAStartup(wVersionRequested,&wsaData);17 if (e. 阅读全文
posted @ 2013-08-29 16:07 CPYER 阅读(2110) 评论(0) 推荐(1) 编辑
摘要: 1:c中的malloc和c++中的new有什么区别(1)new、delete 是操作符,可以重载,只能在C++中使用。(2)malloc、free是函数,可以覆盖,C、C++中都可以使用。(3)new 可以调用对象的构造函数,对应的delete调用相应的析构函数。(4)malloc仅仅分配内存,free仅仅回收内存,并不执行构造和析构函数。(5)new、delete返回的是某种数据类型指针,malloc、free返回的是void指针。注意:malloc申请的内存空间要用free释放,而new申请的内存空间要用delete释放,不要混用。因为两者实现的机理不同。2.简述c、c++程序编译的内存分 阅读全文
posted @ 2013-08-29 11:39 CPYER 阅读(874) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页