VS 动态库的静态调用以及动态调用 动态库的建立动态库的静态调用动态库的动态调用 动态库的建立 MyMath.h
#pragma onceextern "C" __declspec(dllexport) int add(int x, int y);MyMath.cpp
#include "MyMath.h"int add(int x, int y)
{return x y;
}编…
应甲方需要,方便项目集成,将项目打包成动态链接库,以便其他项目调用。
配置环境:Win10, VS2017 Community
1、首先打开VS2017,选择文件->新建->项目,在弹出的界面中选择window桌面和具有导出项的(DLL)动态链接…