I need to write some code and deploy as a static library (.lib) to developer to integrate in the program or dll. How can I write it?