... You successfully built FWH for xHarbour and BCC, right? And it has no problem with LoadLibrary() and FreeLibrary. So why the same libs for MSC should have any problems? Anyway, (maybe there is something that I am missing) you can solve the problem with #ifdef __XHARBOUR__, can't you?