顯示具有 windows 標籤的文章。 顯示所有文章
顯示具有 windows 標籤的文章。 顯示所有文章

2011年9月27日 星期二

How to Get High-resolution Time in Windows

Implement a Continuously Updating, High-Resolution Time Provider for Windows

This is a good article to explain how to get high-resolution time in Windows.
The idea can also apply to other operating systems.

2010年9月30日 星期四

Wide character

The Microsoft Windows application programming interfaces Win32 and Win64 require that wide character variables be defined as 16-bit values, and that characters be encoded using UTF-16, while modern Unix-like systems generally require 32-bit values encoded using UTF-32.

[REF]
Wide character

2010年8月30日 星期一

2010年8月16日 星期一

Bulid celt under mingw32

CPPFLAGS="-fno-common" LDFLAGS="-no-undefined" ./configure
make
make install

2010年8月3日 星期二

Debug Memory Leak in VC

#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>

_CrtMemState old, new, diff;

_CrtMemCheckpoint(&old);
....
_CrtMemCheckpoint(&new);

_CrtMemDifference(&diff, &old, &new);
_CrtMemDumpStatistics(&diff);

_CrtDumpMemoryLeaks();