How to create your own mini-library and connect it to other files in MS VC ++?
1 answer
Usually use a bunch of files "libname.h" and "libname.cpp". Class definitions and function declarations are written in libname.h, and the definitions of these functions are written in libname.cpp. If you need your library, you must add these two files to the project and write
#include "libname.h"
in those files where you want to use your library.
- How to create a header file? - nullptr
- Specifically in MS VS: in the project, right-click on 'Header Files' -> Add -> New item ... - andrybak
- and how to make it right? - nullptr
- If you need an example - look at any project, say, on code.google.com - andrybak
|