#include <stdio.h> #include <string.h> //etc... #define EXPORT __declspec(dllexport) // définit la macro EXPORT EXPORT int __stdcall TaFonction(void); // spécifie que cette fonction est à exporter int __stdcall TaFonction() { int c; while ((c = getchar ()) != EOF) putchar (c); return 0; }
LIBRARY TaDll DESCRIPTION "Une Dll" EXPORTS TaFonction = @1