Windows Runtime provides the HttpClient class along with async APIs. For example, you can send a GET request through the GetAsync(Uri) method. GetAsync() method is an awaitable API so that it returns IAsyncOperationWithProgress<HttpResponseMessage, HttpProgress>^. You will get the HttpResponseMessage by specifying the IAsyncOperationWithProgress to Concurrency::create_task(). However, how can I get the progress? There's no direct … Continue reading [C++/Cx] How can I get the AsyncOperationWithProgress progress?
Sometimes it's needed or you may require to see the assembly output listing of a C++ snippet code just for the testing purpose. Testing yourself with Jason Turner's session might be the example. If you're using a msvc with Windows environment, then it's quite easy by running the simple command line argument: Let's say we have … Continue reading Generating assembly output from msvc and CMake
Now it’s time to build our own clang standalone tool. The official LibTooling document provides an example code so that I was able to begin with it. How to write CMakeLists.txt for the standalone clang tool? Of course using the cmake is not required, but I wanted to go with it. At first … Continue reading Build your own clang example outside of the llvm source tree
Recently I got interests in clang & its library(Libtooling, more specifically) so that I decided to start digging in. However, the first frustration came from while building the clang examples. Download and build the clang source tree Building the clang executable was easy. The Clang website provides instructions and you’ll get the result by just … Continue reading Where’s my ‘llvm/tools/clang/example’ binaries?
https://channel9.msdn.com/Events/GoingNative/2013/Cpp-Seasoning From the beginning of Sean Parent's great C++ talk, he represented two std algorithms people may not be familiar of. It's 'std::stable_partition' and 'std::rotate'. I made a small demo application shows how the two algorithms works. It's Qt5 based application so that you can freely compile and run from Windows, mac or Linux. Grab … Continue reading Demo app shows std::stable_partition and std::rotate works
If you’re developing a QT based application(which links QT libs as statically) and get LNK2019 ‘unresolved external symbol’ link errors when you try to link the other static library, Then you probably start looking those link settings such as, ☐ whether the architecture for the binary is correct(Are you trying to link an x86 lib to … Continue reading Resolving the LNK2019 error while linking QT app
The C++ REST SDK(Casablanca) is currently only available to link dynamically(DLL) unless you build the library on your own. Here is the link describing the steps to link static to your application by downloading the source code and building it so. If you're using the cpprest sdk and unfortunately encountered the following debug heap assert, you probably made mismatch configuration for … Continue reading CppRest SDK(Casablanca) + static CRT link = caution! (might cause debug heap assert)