abdul
Aug 2nd, 2001, 08:25 PM
How do Free up a library at the end of the program, that I have already loaded I am using the code to initialize the library:
HANDLE hrtflib;
hrtflib = LoadLibrary("RICHED32.DLL");
Now, when the window destroys I use this code to free up the library:
FreeLibrary(hrtflib);
hrtflib = NULL;
But I get an error message saying that cannot convert parameter 1 from void * to _HINSTANCE
how do you fix it?
HANDLE hrtflib;
hrtflib = LoadLibrary("RICHED32.DLL");
Now, when the window destroys I use this code to free up the library:
FreeLibrary(hrtflib);
hrtflib = NULL;
But I get an error message saying that cannot convert parameter 1 from void * to _HINSTANCE
how do you fix it?