dll library

Hi guys!

I am trying to use a dynamic library but I can't load it...I hope someone will help me!

I'm using visual studio and followed the instructions on docs.microsoft; The code is beneath; I always get the error message "Could not load CoolProp DLL".Should I save the library in some particular place or do anything special?

Thank you very much!!
Corrado

#include <windows.h>
#include <stdio.h>
int main(void)
{
HINSTANCE CoolPropDll;
CoolPropDll = LoadLibrary(TEXT("C:\\CoolProp\\CoolProp.dll"));

if (CoolPropDll !=NULL){}

else {printf("Could not load CoolProp DLL.");}
}
Use GetLastError() if LoadLibrary returns NULL to find out why it couldn't load it.
Topic archived. No new replies allowed.