how to create library?

question 1

how can i create my own library?
i have make a program to devide a window to two view… so, every time i want to use two view program, just call the library file?
so, how can i convert the program to (.cpp) to library file(.lib, .dll)?

question 2

have anybody make a stereo viewing library?
can i have it…or a link to refer to it?
i just want to compare it with mine…

how can i convert the program to (.cpp) to library file(.lib, .dll)?

This is a general programming question not opengl. Read your compiler’s documentation on how to do this.

-SirKnight