#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <string.h>
#include <conio.h>
HINSTANCE hInstDLL;
typedef long (*tipoFuncion)(int a);
BOOL WINAPI __declspec(dllexport) LibMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
hInstDLL = hDLLInst;
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
return TRUE;
}
void APIENTRY __declspec(dllexport)
Llamar(tipoFuncion f, int a )
{
long b;
b = (*f)(a);
}
|