Click here to Skip to main content
11,789,512 members (35,536 online)
Click here to Skip to main content
Add your own
alternative version

Microsoft Visual C++ Static and Dynamic Libraries

, 26 Jul 2010 CPOL 196.6K 5.3K 248
A simple introduction to static and dynamic libraries with Microsoft Visual C++.
#include "../Add/add.h"
#include <stdio.h>

extern int add(int a, int b);

int main() {

	int a = 2;
	int b = 1;
	printf("a=%d, b=%d\n", a,b);
	printf("add: %d\n", add(a,b));

	return 0;

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
Canada Canada
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1509028.1 | Last Updated 26 Jul 2010
Article Copyright 2010 by ShaneMcDonald
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid