Tout dépend ensuite dans quel langage tu veux utiliser ta dll ?
Car personnellement, je ne vois un réel intérêt à créer une petite dll que si c'est pour l'utiliser ensuite dans un autre langage (sinon, il suffit de faire un #include).
Voici un exemple d'une dll avec une procédure prenant trois paramètres en C/C++ pour utiliser en Java :
#include <jni.h>
#include <stdio.h>
JNIEXPORT void JNICALL lafonction (JNIEnv *, jobject, jstring, jstring, jstring);
JNIEXPORT void JNICALL lafonction (JNIEnv * e, jobject j, jstring chaine1, jstring chaine2, jstring chaine3)
{
char * ch1 = (env)->GetStringUTFChars(chaine1, 0);
char * ch2 = (env)->GetStringUTFChars(chaine2, 0);
char * ch3 = (env)->GetStringUTFChars(chaine3, 0);
printf("Les trois paramètres sont : %s, %s et %s", ch1, ch2, ch3);
return;
}