Para cargar la libreria:
Para resolver su funcion:
En la dll le defines el export para poder utilizarla:
Código (cpp) [Seleccionar]
HINSTANCE hGetProcIDDLL = LoadLibrary("libreria");´
Para resolver su funcion:
Código (cpp) [Seleccionar]
f_funci funci = (f_funci)GetProcAddress(hGetProcIDDLL, "funci");
if (!funci) {
std::cout << "could not locate the function" << std::endl;
return EXIT_FAILURE;
}
En la dll le defines el export para poder utilizarla:
Código (cpp) [Seleccionar]
int __declspec(dllexport) __stdcall funci() {
// ...
}