I have this problem:
I called a function from a dll I wrote. the function was exported correctly and also works great. both, the application and the dll are written in MFC. In the MSDN it is written that if you use multithreaded dlls you should use AfxFreeLibrary instead of FreeLibrary. And, when I tried to use FreeLibrary the program crashed. I, then tried to use AfxFreeLibrary but received a compiler error:
"error C2065: 'AfxFreeLibrary' : undeclared identifier"
I have all the proper include files but it still doesn't seem to work !!!