void TestPlugIn::makeDllCopy() { if ( ::CopyFile( m_fileName.c_str(), m_copyFileName.c_str(), FALSE ) == FALSE ) { throw TestPlugInException( "Failed to copy DLL" + m_fileName + " to " + m_copyFileName, TestPlugInException::failedToCopyDll ); } }
void TestPlugIn::makeDllCopy() { if (::CopyFile(Utilities::stringToWchar(m_fileName), Utilities::stringToWchar(m_copyFileName), FALSE) == FALSE) { throw TestPlugInException( "Failed to copy DLL" + m_fileName + " to " + m_copyFileName, TestPlugInException::failedToCopyDll ); } }
void TestPlugIn::loadDll() { try { m_manager.load( m_copyFileName ); } catch ( CPPUNIT_NS::DynamicLibraryManagerException &e ) { throw TestPlugInException( e.what(), TestPlugInException::failedToLoadDll ); } }