肯肯

DNN, DotNetNuke, CS, CCS, ANF, Oracle, GIS, RIA, JS, XML, AJAX

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  C++

摘要:参考: https://docs.microsoft.com/zh-cn/cpp/dotnet/overview-of-marshaling-in-cpp #include "msclr/marshal.h"#include "msclr/marshal_windows.h"#include "ms 阅读全文
posted @ 2018-01-07 09:48 verygis 阅读(1025) 评论(0) 推荐(0)

摘要:If you are statically linking on Windows, you need these preprocessor defines: DWFTK_STATIC DWFTK_BUILD_EXPAT DWFCORE_STATIC DWFCORE_BUILD_ZLIB The Un 阅读全文
posted @ 2018-01-06 18:26 verygis 阅读(601) 评论(0) 推荐(0)

摘要:wcout.imbue(locale(locale(), "", LC_CTYPE)); 阅读全文
posted @ 2018-01-06 17:46 verygis 阅读(858) 评论(0) 推荐(0)

摘要:http://www.wincli.com/?p=72Many people used to classical C have hard time adopting the code to Windows types. The code below illustrates one of the frequent questions: how to use TCHAR arguments with good old code expecting char * in arguments with minimum blood??12345678910111213141516171819202122. 阅读全文
posted @ 2012-09-04 16:50 verygis 阅读(604) 评论(0) 推荐(0)

摘要:svn checkout http://v8.googlecode.com/svn/trunk/ v8 cd v8svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26@89111 third_party/python_26svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin@66844 third_party/cygwinsvn co http://gyp.googlecode.com/svn/trunk build/gypthird. 阅读全文
posted @ 2012-09-03 10:49 verygis 阅读(858) 评论(0) 推荐(0)

摘要:在网络传输中,采用big-endian序,对于0x0A0B0C0D ,传输顺序就是0A 0B 0C 0D ,因此big-endian作为network byte order,little-endian作为host byte order为什么X86存储会使用little-endian,起初我想对于位运算,尤其是位移运算,little-endian很方便,但转念一想,big-endian也方便啊,无非是左移和右移的区别而已,但little-endian的优势在于unsigned char/short/int/long类型转换时,存储位置无需改变。 阅读全文
posted @ 2012-06-09 15:08 verygis 阅读(622) 评论(0) 推荐(0)

摘要:该宏的定义如下:#ifndefUNUSED_PARAM#defineUNUSED_PARAM(v)(void)(v)#endif假如一个有返回值的函数 如调用时是没有使用它的返回值,编译器会给出一个警告 如果用void强制转换一下,则明确告诉编译器不使用返回值 也就是为了消除警告 阅读全文
posted @ 2012-05-03 10:03 verygis 阅读(4817) 评论(0) 推荐(0)

摘要:在 VS2008 下编译c++程序,发现找不到 stdint.h, 最后证实原因如下红字,解决方案是改用符合C99标准的编译器(如VS2010),或自定义头文件:#ifdef_MSC_VERtypedef__int32int32_t;typedefunsigned__int32uint32_t;typedef__int64int64_t;typedefunsigned__int64uint64_t;#else#include<stdint.h>#endifVisual Studio 2003 - 2008 (Visual C++ 7.1 - 9) don't claim t 阅读全文
posted @ 2012-04-22 22:14 verygis 阅读(28282) 评论(1) 推荐(0)