dll的隐式导入,应该怎么导入,为什么我这种方式会报错.
采用了以下方式导入,结果没有成功.如下
//使用dll需要与dll的lib文件进行静态链接 #pragma comment(lib,"D:\\vsCode\\peDll\\pe.lib") //静态链接后需要进行函数导入 _declspec(dllimport) readFileToMemory(LPSTR pFilePath); _declspec(dllimport) printPeDetailed(LPVOID pBufferAddress); _declspec(dllimport) fileToMemory(LPVOID pBufferAddress); _declspec(dllimport) memoryToFile(LPVOID pMemoryBufferAddress); _declspec(dllimport) fileToRealFile(LPVOID pBufferAddress, CHAR* filePathName);
显示这些函数没有被定义,不能使用