How can I add a .dll in Visual Studio 2010? I just cannot find the option there.
.dll
Assume that the source file you want to compile is main.cpp and your example_dll.dll and example_dll.lib . now run cl.exe main.cpp /EHsc /link example_dll.lib now you may get main.exe
cl.exe main.cpp /EHsc /link example_dll.lib