Archives
How-To: Dynamically Invoke C++ DLL Function in C#?
Calling a C++ dll from C# code is very common in our daily programming activities. This post shows you how to dynamically invoke a C++ DLL function in C#.
Read More...Optimizing Bounds Checking in C/C++
Bounds-checking is always used in programming. We check if a given index of an array is out of bound, check if a value is within its the minimum and maximum boundary, and so on. This post discusses ways of optimizing bounds checking in C/C++.
Read More...Bitwise operators vs. Boolean operators in C/C++
In this post, we look into the difference between Bitwise and Boolean operators in C/C++. We need to understand how the compiler interprets them so that we could write more efficient code, especially for performance-critical code in our library or application.
Read More...Algebra optimization for faster code in programming
Most compilers optimize algebra equations for you. However, we can’t be sure that all equations are optimized. To play-safe, we can do the optimization ourselves at the code level. This post shows various examples of algebra optimization that could be employed into our daily programming activities.
Read More...Memory Leak detection with Microsoft Visual C++ – Part 2
In this post, we look at how we get detailed memory leak reports from every of our source file. It’s a very simple and useful way to get the debug heap manager to report the leaks, unless you’re into writing your own memory manager.
Read More...How-To: Limit an application to one instance in C++
Limiting an application to one instance can be a very important feature. We won’t want to have multiple Windows Live Messengers running at the same time. That applies to our chatting applications or any related applications that need this feature. In this post, we look at how to write a simple class to limit the application to one instance only in C++.
Read More...This application has failed to start because the application configuration is incorrect.
Seeing this error is annoying. We’d encounter this error more than often when we try to run our application on another computer, especially for application compiled with Visual Studio C++ 2005/2008. In this post, we’ll learn about the various ways we could use to solve this error.
Read More...Function Types in C++
In C/C++ programming, there are four categories of function calls. Knowing which to use will improve your code readability and application execution speed. This post helps you to understand the differences between them.
Read More...Pointers and Const in C/C++
In C/C++ programming, the placing the keyword “const” with a pointer can be tricky. There are various ways of declaring a constant with a pointer. In this post, we look at the variants in detailed. It’s also a popular interview question too.
Read More...How-To: Build libtorrent DLL for Windows in C++
LibTorrent is an open-source library. Building it may sometimes be tough for amateur programmers. Here is the step-by-step of how to build a BitTorrent dll using LibTorrent for Windows.
Read More...
Recent Comments