
Programming
Sisopp
这个作者很懒,什么都没留下…
展开
-
Get all tables' name from sqlite database
A table named sqlite_master. It's storing all tables' properties.You can get all tables' name by executing a SQL sentence.1. SELECT Name FROM sqlite_master WHERE type='table'转载 2013-08-20 13:05:16 · 995 阅读 · 0 评论 -
About placement new operator
We can use placement new operator to allocate an object on appointed memory. For example:char* buf =newchar[1000];Object* pobj = new(buffer)Object();The object will use the buf space ins转载 2013-08-20 16:44:47 · 556 阅读 · 0 评论 -
About opaque data type
User can define an opaque data type in C/C++ header file like below:typedefstructDataHandleDataHandle; ortypedefstructDataHandle*PDataHandle;It will still work even there is no def转载 2013-08-20 17:22:32 · 995 阅读 · 0 评论 -
Generate .lib from .dll and .def
1. Start visual studio command line.2. Change to the directory which includes .dll and .def files.3. run cmd "lib /def:xxx.def /MACHINE:x86"转载 2013-08-13 15:36:58 · 962 阅读 · 0 评论 -
Ubuntu下搭建gtest环境
安装及编译gtest:1. sudo apt-get install libgtest-dev2. cd /usr/src/gtest3. sudo mkdir build4. cd build5. cmake ..6. sudo make创建库文件软链接:1. sudo ln -s libgtest.a /usr/lib/libgtest.a2.原创 2015-03-31 10:43:25 · 953 阅读 · 0 评论 -
UNION and copy constructor
When user define an UNION like below:unionADDRESS{ char* road; string street;};The compiler will report an error(visual studio) : member 'ADDRESS::street' of union 'ADDRESS' ha原创 2013-08-21 14:39:43 · 942 阅读 · 0 评论 -
Ubunt搭建Gstreamer开发环境
1. sudo apt-get install libgstreamer0.10-dev2.转载 2015-03-31 11:38:49 · 694 阅读 · 0 评论