VS2017 DLL动态库使用教程【三】动态内存管理

在dll内的malloc内存,必须在dll内free。不然就会出现问题。ios 好比:函数 DLL文件:spa #include <stdint.h> #include <stdio.h> #include <stdlib.h> _declspec(dllexport) int* GetA(int size) //根据形参malloc出一个内存,并把它返回 { int *q = (int *)
相关文章
相关标签/搜索