VS2017——C语言dll编译并调用

1.生成dll 1.1文件——新建——项目,选择以下图测试 1.2新建头文件test.h和源文件test.cdebug //test.h __declspec(dllexport) int sum(int a, int b); //test.c #include "test.h" #include <stdio.h> int sum(int a, int b) { return a + b;
相关文章
相关标签/搜索