在MFC DLL中找不到标识符 [英] Identifier not found in MFC dll

查看:344
本文介绍了在MFC DLL中找不到标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个函数返回整数中设计了一个MFC dll应用程序,它构建成功,但是当我在基于MFC对话框的应用程序中调用该dll函数时,它显示错误,标识符未找到并指定了dll函数名称,那么什么是在MFC应用程序中导入该DLL函数所需的条件?

I design one MFC dll application in that one function return integer,it builds successfully but when I called that dll function in my MFC dialogue based application,it shows error that Identifier not found with specify that dll function name, so what are required conditions to import that dll function in MFC application?

推荐答案

您应该:

  • 包含 DLL 头文件。
  • 将库文件( *。lib )添加到链接器输入文件
  • 确保 DLL 位于应用程序的搜索路径中。
You should:
  • include the DLL header file.
  • add the library file (*.lib) to the linker input files
  • make sure the DLL is in the search path of your application.


这篇关于在MFC DLL中找不到标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆