This is a mirror of official site: http://jasper-net.blogspot.com/

Microsoft Visual C++ Static and Dynamic Libraries

| Tuesday, June 8, 2010
This article is intended to be a basic introduction to the Microsoft Visual C++ Static and Dynamic Libraries. This article assumes that you have a basic understanding of the C language and are familiar with the Microsoft Visual C++ IDE. I will show you how to compile and reference dynamic and static libraries so that you can share and distributed your own libraries. You will need to have a version of Microsoft Visual C++. If you do not own a copy you can download the express edition here.

This tutorial will cover step-by-step how to compile and reference your libraries with plenty of visuals. This article is intended to be repetitive to help beginners grasp and develop their own libraries with Microsoft Visual C++. I strongly recommend you read my previous article about compiling libraries with MinGW. The article provides a comparison between static and dynamic libraries. In general I find GCC compiler easier to comprehend and easier to develop libraries, this will assist beginners in developing their own libraries.

The Static Library  

The code for a static library is identical to my previous post on compiling libraries for MinGW, found here. This is a over simplistic library to emphasis the process  of creation not the concept of a library. The library is pretty standard, in that the function is declared in the header and defined within the 'c/cpp' file.

Read more: Codeproject

Posted via email from jasper22's posterous

0 comments: