OK, I was able to solve the previous problem by developing a shared library in the main projects folder.
The main projects folder contains:1. Application project folder.
2. Shared library example folder.
So I could include the new shared library, but when I tried to run the function from the shared library into the main project source file, I got an error saying
the code execution cannot proceed because .dll was not found
So I had to copy the shared library .dll file into the bin folder of the main project folder. And problem is solved.
My new question is:
How to include the .dll files in the main project bin folder automatically?
Now, if I've done anything new in the library, then I have to compile it and then copy the .dll file again into the bin of the main application folder.