Philips Interview Question

How to write a DLL in C++ ?