dll编译后检查发现导出表为空,导出的函数不在里面
时间: 2016-08-23来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
写了个简单的ping检测dll导出了ping函数供其他程序调用,但是现在源码中导出了函数却无法使用,检查发现dll文件没有导出任何函数。源码vs2008正常编译求解
// iping.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #include "ping.h" extern "C" _declspec(dllexport) int _cdecl ping(char ip,int latency); extern "C" __declspec(dllexport) int TestFuction(int nType,char *strPath,std::vector<string> &vecData) { ////do anything here//// return 0; } BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } ping(char ip,int latency) { int a; a=-1; a=icmping((const char *)ip,latency); return a; }



源码打包: http://pan.baidu.com/s/1c2IAo2O

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行