now this looks HACKY (especially the first function - and what is PervertedFormat...forget it )....what do the dlls actually do?....you said you reversed the logic, so what's the purpose of the libs now when the main code is inside the host application and dlls use it...that makes sense only for some plugin architecture in which case I'd go with interfaces....