您当前的位置: 首页 > 

柳鲲鹏

暂无认证

  • 1浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

VC通过函数名调用DLL的标准范例

柳鲲鹏 发布时间:2021-12-03 09:40:01 ,浏览量:1

  • DLL
extern "C" __declspec(dllexport) void GetDefaultPrinterName(char* name);

extern "C" __declspec(dllexport) void GetDefaultPrinterName(char* name)
{
    //
}
  • 调用代码
#include 
#include
#include
using namespace std;

#define TEST_DLL_PATH        "D:\\Office-5.0-project\\c\\windows-printer\\Debug\\TPrinter.dll"
#define TEST_FUNCTION_NAME   "GetDefaultPrinterName"

typedef void( *TestFunction)(char*);

int main()
{
	cout             
关注
打赏
1665724893
查看更多评论
0.0492s