Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to compile a stand-alone program file? Posted by earth_walker on 25 Jul 2003 at 8:17 PM
Hi! I used Delphi5 and compile a project.

I copy the resulted .exe file and the .DLL(from another project) file with it to another computer. The other computer popup an message that:
"The dynamic link library borlndmn.dll could be found in the specified path....."

I don't want tho copy all the .DLL files. How can I make a hard link to avoid it?

Thank you!
Report
Re: How to compile a stand-alone program file? Posted by zibadian on 25 Jul 2003 at 10:26 PM
: Hi! I used Delphi5 and compile a project.
:
: I copy the resulted .exe file and the .DLL(from another project) file with it to another computer. The other computer popup an message that:
: "The dynamic link library borlndmn.dll could be found in the specified path....."
:
: I don't want tho copy all the .DLL files. How can I make a hard link to avoid it?
:
: Thank you!
:
You need the borlndmn.dll if you use the ShareMem unit. There is no way around it, unless you don't use the ShareMem unit. In order to avoid using that unit, you need to type-cast all long strings as PChars and avoid using pointers, which are allocated in one module and disposed of in the other.
Report
Re: How to compile a stand-alone program file? Posted by earth_walker on 26 Jul 2003 at 6:20 AM
Thank you!
So does it mean what I need to do is, to copy this .DLL file with my program file if I don't do the type cast(too much work to go back and do type-casting)?
Report
Re: How to compile a stand-alone program file? Posted by zibadian on 27 Jul 2003 at 2:20 AM
This message was edited by zibadian at 2003-7-27 2:21:55

: Thank you!
: So does it mean what I need to do is, to copy this .DLL file with my program file if I don't do the type cast(too much work to go back and do type-casting)?
:
Yes. Although its better to place that dll in the windows or windows\system directory, so all your programs may also use it.
Report
Re: How to compile a stand-alone program file? Posted by earth_walker on 27 Jul 2003 at 5:05 AM
Thank you:)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.