Posts Tagged ‘ c++ ’

google test 1.4.0 is buggy

2009/11/18
By

It raises lots of error about … testing::internal::AssertHelper::AssertHelper(testing::TestPartResultType, char const*, int, char const*)… More Info

Read more »

From UnitTest++ to GoogleTest

2009/06/25
By

We’ve decided to replace UnitTest++ with googletest

Read more »

Passing UTF-8 String from C# to Unmanaged C++ DLL

2009/02/05
By

我有個 DLL ,輪入 keystroke 可以傳出文字(不限英文中文)。今年寫了個應用程式,還可以把選出來的文字再傳回去算詞頻。

Read more »

由 C# 傳 Callback function 給 C++ DLL

2008/12/25
By

一般來說,在 C# 呼叫 C++ 寫的 DLL ,可以用下面的方式來宣告:

Read more »

how to clear ostringstream?

2008/09/18
By

下面這程式真有清掉嗎? ostringstream os; … os.clear(); cerr < < os.str()

Read more »

openmp tutorials – scheduling

2008/09/07
By

目前會的,就是 在 for loop 中, schedule 設為 dynamic 與 guided 的不同。

Read more »

string to/from wstring conversion

2008/08/29
By

std::wstring s2ws(const std::string& s) {     std::wstring temp(s.length(),L‘ ‘);     std::copy(s.begin(), s.end(), temp.begin());     return temp; } std::string ws2s(const std::wstring& s) {     std::string temp(s.length(), ‘ ‘);     std::copy(s.begin(), s.end(), temp.begin());     return temp; } Update: 好心人提供的文章

Read more »