在MFC DLL中找不到标识符

编程入门 行业动态 更新时间:2024-10-23 21:26:21
本文介绍了在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中找不到标识符

本文发布于:2023-10-07 15:28:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469775.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标识符   中找   MFC   DLL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!