Use the conversion macros (for ASCII/UNICODE compatibility), not indiscriminate casting to make the compiler STFU.
::LoadLibrary( TEXT("Component1.dll") );
Just because you managed to silence your compiler is in no way a measure of run-time success.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953