in generale nella dll:
***********************
extern "C" __declspec( dllexport ) void PlugInfo(char*, char*);
extern "C" __declspec( dllexport ) void PlugInfo(char* name, char* author)
{
...
}
il chiamante invece:
********************
typedef void (WINAPI * FUNZEXPORT) (char*, char*)
HANDLE hLib;
FUNZEXPORT fnz;
if ( hLib = LoadLibrary ("libreria.dll") )
{
fnz = (FUNZEXPORT*) GetProcAddress (hLib, "PlugInfo");
fnz ("CICCIO BELLO", "BATUFFOLONE");
}