I don't know much about it, however using Dev-C++ there is a basic template for dll files, so perhaps this is a good starter?
Two files are made, these are the names & content:
/* Replace "dll.h" with the name of your header */
#include "dll.h"
#include <windows.h>
DllClass::DllClass()
{
}
DllClass::~DllClass ()
{
}
BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ ,
DWORD reason /* Reason this function is being called. */ ,
LPVOID reserved /* Not used. */ )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
/* Returns TRUE on success, FALSE on failure */
return TRUE;
}
That is indeed a good starter. Start adding functions to it. Then create another app to reference and test it. Just have a play around, it's not nearly as hard as you imagine.
Simply compiling what Dev-C++ creates for you will give you a DLL that does nothing. So add some functionality to it.