C++
giskook
这个作者很懒,什么都没留下…
展开
-
[转]
VS2008编译iconv静态链接库 sparkcoollee的空间 http://hi.baidu.com/sparkcoollee/blog/item/947e065088d2ed3643a75b09.html iconv是将一种编码格式转换为另一种编码格式的开源库,例如可以把Windows环境下通用的ASCii(中文是GB2312)编码转换为国际通用的Unico转载 2012-04-04 11:42:28 · 488 阅读 · 0 评论 -
自定义断点
void mybreakpoint(bool b){ if (!b) { __asm{ INT 3; } } }; #ifdef _DEBUG #define myassert(arg) mybreakpoint(arg) #else #define myassert(arg) #endif 查看:函数返回值:$eax原创 2013-06-18 16:51:10 · 815 阅读 · 0 评论 -
记录操作数据
写了一个记录操作数据的类,用来抓at指令来着。没有效率和其他的考虑,在这记录下。 CDebugTools.h #ifndef CDEBUGTOOLS_H_H #define CDEBUGTOOLS_H_H #include #include #include class CDebugTools{ public: static CDebugTools& GetIn原创 2013-07-04 09:02:59 · 530 阅读 · 0 评论 -
google ProtoBuf开发者指南
转载:http://www.cppblog.com/woaidongmao/archive/2009/06/23/88391.html ProtoBuf开发者指南 译者: gashero 目录 1 概览 1.1 什么是protocol buffer1.2 他们如何工作1.3 为什么不用XML?1.4 听起来像是为我的解转载 2013-08-20 14:38:00 · 599 阅读 · 0 评论 -
二维数组与二级指针
#include #include int main(){ const int H= 10; const int W= 10; int array[H][W] = {0}; int (*p)[W] = array; int **pp = (int**)array; int (*_p)[W] = (int(*)[W])pp; for (int i = 0; i原创 2013-10-30 10:06:58 · 564 阅读 · 0 评论 -
[转]文件包含 头文件 inline 编译
inline 函数遇到的问题。inline 在头文件中。不会编译? C语言中的函数或变量有且只有一个定义,但它可以有多个extern声明。唯一性 规则也适用于常数定义,结构定义,类型定义,宏定义,只不过它们默认只对本 单元可见;而函数和变量(函数外)的定义默认是全局可见的。 Linux0.11的目录: |-boot/ |-fs/转载 2013-12-23 16:37:42 · 685 阅读 · 0 评论 -
vc9 没有pdb文件。
vc9 编译 curl 遇到的问题,总结一下。首先是编译静态库没问题,(是有问题,但是编译中没有报错,调用 的过程中出错了)。后来发现没有链接ws2_32.lib Wldap32.lib库,找这种库还是很费事的。关键是不了解网络编程。2.编出来的dll没有pdb文件,耽误了好长时间发现是在链接的选项下没有设置生成pdb文件。汗~~~ Linker--debuging--Generate debug原创 2014-01-15 15:37:30 · 809 阅读 · 0 评论