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 *)
相關文章
相關標籤/搜索