How to Create a Library of Functions in Visual Studio?

Hello! My teacher wants me to write a bunch of functions to save into a library that I can use in other programs. How do I create and save a library? I'm using Microsoft Visual Studio 2015. Please be thorough in any instructions as I'm super new to programming. Thanks!
+ Write a static library
+ Write a dynamic library

Static library includes a header file and an implementation file. When you use the static library, you use the static library and just the header file.

Dynamic library is a little bit more complex but it can be used by multiple programs at the same time. You export functions and classes and then you load necessary components in the client program using LoadLibrary and GetProcAddress.

Your teacher probably knows it all.
closed account (E0p9LyTq)
Walkthrough: Creating and Using a Static Library
https://msdn.microsoft.com/en-us/library/ms235627.aspx

Walkthrough: Creating and Using a Dynamic Link Library (C++)
https://msdn.microsoft.com/en-us/library/ms235636.aspx

Good Luck!
closed account (E0p9LyTq)
I seriously doubt your instructor wants you to create a DLL file, especially if you are a noob.

More likely they want you to learn create separate .CPP and .H files for your library functions that you can add to your own code project as needed.

Ask your instructor exactly what method they want you to do for the library.
Topic archived. No new replies allowed.