为什么编译完的可执行程序运行时会提示缺少BORLANDMM.DLL?

stonj 2002-10-25 04:53:29
该怎么解决?
3x!
...全文
126 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
stonj 2002-10-25
  • 打赏
  • 举报
回复
把linker项里面的Use dymanic RTL 去掉后就不可以直接用了!
不过刚才我已经查到相关帖子了,
得包含shellapi。h文件
mynameis007 2002-10-25
  • 打赏
  • 举报
回复
啊,又是这个问题啊......第101遍.
Spring414 2002-10-25
  • 打赏
  • 举报
回复
ShellExecute()直接可以用的!
stonj 2002-10-25
  • 打赏
  • 举报
回复
我把lingker页面里面的use dynamic rtl去掉了
可程序里面的一个函数ShellExecute()它又不认识了
是调用另一个应用程序的函数
应该包含上哪一个文件才行?
yuanque 2002-10-25
  • 打赏
  • 举报
回复
有一种情况可能是你调用了DLL库。。。。。。
//---------------------------------------------------------------------------
// Important note about DLL memory management when your DLL uses the
// static version of the RunTime Library:
//
// If your DLL exports any functions that pass String objects (or structs/
// classes containing nested Strings) as parameter or function results,
// you will need to add the library MEMMGR.LIB to both the DLL project and
// any other projects that use the DLL. You will also need to use MEMMGR.LIB
// if any other projects which use the DLL will be performing new or delete
// operations on any non-TObject-derived classes which are exported from the
// DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling
// EXE's to use the BORLNDMM.DLL as their memory manager. In these cases,
// the file BORLNDMM.DLL should be deployed along with your DLL.
//
// To avoid using BORLNDMM.DLL, pass string information using "char *" or
// ShortString parameters.
//
// If your DLL uses the dynamic version of the RTL, you do not need to
// explicitly add MEMMGR.LIB as this will be done implicitly for you
//---------------------------------------------------------------------------
Libran 2002-10-25
  • 打赏
  • 举报
回复
去掉菜单[Project]-[Option...]-Linker页里Use dymanic RTL 前的勾再Build
tokens 2002-10-25
  • 打赏
  • 举报
回复
是不是在运行这个程序的机子上没装BCB呀。。
那么编译前应该做以下操作。
看属性里的Packages和linker

Project—>Option下面找Packages 把runtime Packages去掉
在linker那一个页面把Use dynamic RTL去掉

13,871

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧