I am trying to compile my first dll file using the free compiler. Could someone tell me how I do it. I am using "Programming Apps for Windows" by Richter, and using his method of defining

#define WINLIBAPI extern "C" __declspec(dllexport)
#define WINLIBAPI extern "C" __declspec(dllimport)

in their relevant places.

I have just one module file, called test.c, 1 header file called testdll.h and 1 executable file which uses dll called testcode.c

thanks very much.