Archives

Posts Tagged ‘C/C++’

How-To: Dynamically Invoke C++ DLL Function in C#?

March 1st, 2010 One Commented

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++

December 11th, 2009 Leave a Comment

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++

November 5th, 2009 Leave a Comment

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...

Memory Leak detection with Microsoft Visual C++ – Part 2

October 28th, 2009 Leave a Comment

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++

October 26th, 2009 Leave a Comment

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.

October 13th, 2009 12 Commented

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++

October 7th, 2009 Leave a Comment

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++

October 5th, 2009 Leave a Comment

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++

September 26th, 2009 127 Commented

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...

Static Link Library (SLL) vs. Dynamic Link Library (DLL) in C/C++

September 24th, 2009 Leave a Comment

Static linking vs. Dynamic linking, each has its own advantages and disadvantages. Understanding them will definitely help you to use the one which is suitable and benefits most to your application in terms of maintenance and robustness. Read More...