Miscellaneous

Count Instances of Process or Application in C/C++

This article describes how to count the number of instances of a process that are currently running on the system. It is written in C++ for Windows, but could be ported to other systems and languages easily. (Linux, Visual Basic/VB, C, Unix, MacOS) The system just needs to support interprocess semaphores. The idea can be extended to count any resource, such as a thread, file, data structure, or ne

One Source Code,different Results, MACROS v/s FUNCTIONS

his one's basically shows that MACROS when used in different compilers can give different results. This one teaches you to analyse C++ code and read it in Assembly and draw Conclusions about the results. Really interesting if you read it completely...

Using the Deque class in Recursive Algorithms

This snippet focuses on the uses of the STL deque class in a recursive algorithm, namely to solve a maze.

Ip address of a computer using winsock

There is a function gethostbyname for getting the ip address using Winsock. This function will retrieve the ip address details into a variable of type "structure hostent". Read for more info at <a href=http://www.codersource.net/win32_socket_ip_address.html>IP Address Retrieval</a>

Calculate Distance Between Two Points Using Longitude & Latitude

Tutorial and sample codes to calculate the distance between two locations. Free sample source codes in PHP, ASP, ColdFusion, C/C++, C#, Java, Perl, Visual Basic and Javascript. Longitude and latitude for United States ZIP Code and Canadian Postal Code are available in database subscription.

Allegro Vivace

This is a comprehensive tutorial to guide newcomers to game programming and Allegro through the process of writing a simple game. Allegro is a game programming library.