加载动态库
没有头文件和静态库加载C++类的输出动态库,一言不合上代码 class CTest { public: CTest(LPCSTR szDll,LPCSTR sText) { m_hdl = LoadLibrary( szDll ); FARPROC proc = GetProcAddress(m_hdl, "??0CSampleDll@@QAE@PBD@Z"); *((FARPROC*)&m_Construct)=proc; (this->*m_Construct)(sText); proc = GetProcAddress(m_hdl, "??1CSampleDl
用户评论