Blog Posts

Recent posts

Load a binary file with C++

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 bool LoadBinaryFile(std::wstring const& path, std::vector<unsigned char>& data) { try { std::basic_ifst...

Load a text file with C++

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 std::wstring fromAscii(const char* str) { std::wstring sOutput; int inputLength ...

Understanding COM threading model(Apartment)

less than 1 minute read

I have found very useful articles for understanding COM threading model about Apartment. If you want to understand COM Apartment model, the following article...