Philips interview question

How to write a DLL in C++ ?