码迷,mamicode.com
首页 >  
搜索关键字:tchar    ( 2435个结果
删除外部dwg中指定的块定义
本例实现删除外部图纸中指定的块定义,在外部图纸当前模型空间中是没有该块定义的块参照存在。代码如下:void CBlockUtil::DeleteBlockDefFormOtherDwg(const TCHAR* fileName, const TCHAR* blkDefName){ // 使用...
分类:其他好文   时间:2015-10-20 17:48:47    阅读次数:195
多个进程获取同一个内核对象,他们的句柄是一样的
// temp10.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ HA...
分类:系统相关   时间:2015-10-16 18:29:45    阅读次数:188
构造 析构调用时机
#include "stdafx.h"class MyClass{public:MyClass(){printf("MyClass");}~MyClass(){printf("~MyClass");}};int _tmain(int argc, _TCHAR* argv[]){MyClass my;...
分类:其他好文   时间:2015-10-16 08:46:21    阅读次数:215
基于Gsoap 的ONVIF C++ 库
https://github.com/xsmart/onvifcpplib该库支持ProfileS 和ProfileG。目前正在开发的这,现拥有支持Event以下是一client抽样int _tmain(int argc, _TCHAR* argv[]){ int ret; /* 192.168.1...
分类:编程语言   时间:2015-10-10 22:56:02    阅读次数:231
基础语法
cout函数,该函数用于输出数据 cout函数用于向屏幕输出数据,语法如下: std::cout头文件,否则程序无法编译。#include "stdafx.h"#include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ ...
分类:其他好文   时间:2015-10-04 20:59:01    阅读次数:187
服务器传回数据是UTF8编码,需要转换Unicode
int nLen = MultiByteToWideChar(CP_UTF8, NULL, szBuffer, -1, NULL,NULL);TCHAR* pwData = new TCHAR[nLen];MultiByteToWideChar(CP_UTF8, NULL, szBuffer, -1...
分类:其他好文   时间:2015-09-30 20:58:19    阅读次数:146
Aggregate Class(聚合类)的使用
struct?Data { ????int?ival; ????string?s; }; //class?Data //{ //public: //????int?ival; //????string?s; //}; int?_tmain(int?argc,?_TCHAR*?argv[]) { ????Data?data?=...
分类:其他好文   时间:2015-09-28 01:27:36    阅读次数:164
Unicode 与多字节编码
int _tmain(int argc, _TCHAR* argv[]){ //定义LPWSTR 类型的宽字符串 LPWSTR szUnicode = L"This is a Unicode String;"; //定义LPSTR 类型的窄字符串 LPSTR szMutliByte = "This....
分类:其他好文   时间:2015-09-23 19:08:06    阅读次数:124
将外部dwg图纸中指定带属性的块插入到当前图纸中
static void InsertBlock() { //获取要插入的块名 TCHAR str[40]; acedGetString(Adesk::kFalse, _T("\n请输入要插入的块名称:"), str); CString blockName ; blockName.Forma...
分类:其他好文   时间:2015-09-11 15:36:55    阅读次数:206
打开文件夹
void C文件Dlg::OnBnClickedButton1(){ // TODO: 在此添加控件通知处理程序代码 CString strFolderPath(_T("")); TCHAR szPath[_MAX_PATH]; BROWSEINFO bi; bi.hwndOwner = GetSa...
分类:其他好文   时间:2015-09-10 13:07:45    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!