
VC开发技巧
sailing0123
程序员-》软件设计师-》系统架构师
展开
-
浅析:setsockopt()改善程序的健壮性(转载)
主 题: 浅析:setsockopt()改善程序的健壮性 作 者: gdy119 (夜风微凉) 不断的收到coolmei25 (梅生)的答谢,我都不好意思了(我都没帮到他),下面写出我在网络编程中的一点心得体会,希望对他(^_^也对大家)有帮助:1. 如果在已经处于 ESTABLISHED状态下的socket(一般由端口号和标志符区分)调用closesocket(一般不会立即关闭而经历TIME转载 2006-04-13 10:10:00 · 659 阅读 · 0 评论 -
最简单的windows手工编译C/C++脚本
@rem =========================================================================@rem Windows 32bit environment@rem =========================================================================@原创 2013-05-13 16:35:31 · 3227 阅读 · 1 评论 -
nmake编译boost程序的脚本
mk.bat@echo on@setlocal@echo ===============================================================@echo Windows 32bit 控制台程序 自动编译脚本@echo =================================================原创 2013-05-13 17:23:54 · 1253 阅读 · 0 评论 -
Boost Threads with CLR dll --- metadata operation failed
I am using Visual C++ 2010 and created a CLR EXE debug project and wrote a function, which I am able to call from main in my program. If I take the exact same code and put it in a dll, then I get a c转载 2013-05-02 09:55:41 · 2133 阅读 · 0 评论 -
简单的wchar_t 和 char 转换类, 且包含与UTF8的转换
/*************************************************************** 简单的wchar_t 和 char 转换类, 且包含与UTF8的转换(需要定义宏_UTF8_) ***************************************************************/#ifndef原创 2012-03-15 18:45:36 · 2923 阅读 · 0 评论 -
instantclient - 运行Oracle应用程序依赖的最小安装包
早就听说安装oracle提供的instantclient(30多兆)就可以了,但之前没有尝试成功,今天尝试成功了:) 其实很简单,设置两个环境变量 ORACLE_HOME 和 PATH 就可以了。 ORACLE_HOME=instantclient的安装目录 PATH= instantclient的安原创 2012-03-15 18:41:42 · 1316 阅读 · 0 评论 -
CListCtrl使用技巧
以下未经说明,listctrl默认view 风格为report1. CListCtrl 风格 LVS_ICON: 为每个item显示大图标 LVS_SMALLICON: 为每个item显示小图标 LVS_LIST: 显示一列带有小图标的item转载 2011-07-15 15:10:50 · 897 阅读 · 1 评论 -
简单的wchar_t 和 char 转换类
功能: 简单的wchar_t 和 char 转换类 char * Char(void){ return m_cDest; } wchar_t * WChar(void){ return m_wcDest; }原创 2011-07-15 17:09:18 · 1115 阅读 · 0 评论 -
VC下内存泄漏的检测方法
用MFC研发的应用程式,在DEBUG版模式下编译后,都会自动加入内存泄漏的检测代码。在程式结束后,假如发生了内存泄漏,在Debug窗口中会显示出任何发生泄漏的内存块的信息,以下两行显示了一块被泄漏的内存块的信息: E:/TestMemLeak/TestDlg.cpp(70) : {59} normal block at 0x00881710, 200 bytes long. Data: 61转载 2008-11-03 22:19:00 · 1916 阅读 · 0 评论 -
VC 调用外部程序
1 WinExec原型:UINT WinExec( LPCSTR lpCmdLine, // address of command line UINT uCmdShow // window style for new application);用于十六位操作系统及兼容系统.例如:WinExec("notepad.exe f://调用程序.txt",SW_SHOW);WinExec(转载 2008-04-25 23:06:00 · 3432 阅读 · 0 评论 -
iconv 转换字符编码,兼容VC转换
#ifndef __CHAR_CONVERT_H__#define __CHAR_CONVERT_H__#ifdef OS_WINDOWS#include //"targetver.h"#ifndef WIN32_LEAN_AND_MEAN#define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使原创 2012-05-17 05:21:52 · 3056 阅读 · 2 评论