# cppref_dll **Repository Path**: daemon811/cppref_dll ## Basic Information - **Project Name**: cppref_dll - **Description**: c++引用dll和lib的测试 可以引用其他项目中的函数和类 引用lib时不需导出语句,引用dll时需要导出语句 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-22 - **Last Updated**: 2023-12-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cppref_dll #### 介绍 c++引用dll和lib的测试 可以引用其他项目中的函数和类 引用lib时不需导出语句,引用dll时需要导出语句 dll中导出类: class _declspec(dllexport) testc2 { public: testc2(); int add3(int m, int n); }; dll中导出函数 extern "C" _declspec(dllexport) int sum(int a, int b);