Board index » cppbuilder » Missing DLLs

Missing DLLs

I just reinstalled BC5 and installed Builder3 on a PC running Win95. It took
me several trys to get it right. As a result, the path was messed up. I
edited the path which now points to both BC5/Bin and CBuilder3/Bin.

When I ran my simple test code (example from the Teach Yourself manual)
outside of Builder, it complained about missing the CP3240MT.dll and
BORLNDMN.dll. I copied these DLLs into my windows directory and my code ran
ok. However, I am worried that as I run more comples examples the problem
will crop up again.

Short of copying all the Builder DLLs into Windows subdir is there a
solution?

I noticed in the Builder environment,  paths starting with $(bcb) which is
described as a macro defined in the registry. I searched the registry for
this string but found nothing. Do I need to add it to the registry? If so,
please provide details as I know just enough about the registry to get in
trouble.

Steve

 

Re:Missing DLLs


You can put the DLLs in the same directory as the exe/dll that requires them
but this generally leads to a proliferation of system-like DLLs across your
disk.

You statically link in the functionality of the runtime and memory
management DLL but this increases the size of your program.

You can modify a registry entry that Windows uses to customize the path
environemnt when an application runs. This means that you could have:

Program Files
\MYCOMPANY
\COMMON
\APP1
\APP2

Such that the system DLLs go into COMMON and the path for APP1 and APP2 is
modified to include COMMON. However, this won't help if you run the program
from the command line. I forget which registry key you must modify but I
would expect it to be under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows

Chris.

Quote
Steve Scheele wrote in message <790gts$a...@forums.borland.com>...
>I just reinstalled BC5 and installed Builder3 on a PC running Win95. It
took
>me several trys to get it right. As a result, the path was messed up. I
>edited the path which now points to both BC5/Bin and CBuilder3/Bin.

>When I ran my simple test code (example from the Teach Yourself manual)
>outside of Builder, it complained about missing the CP3240MT.dll and
>BORLNDMN.dll. I copied these DLLs into my windows directory and my code ran
>ok. However, I am worried that as I run more comples examples the problem
>will crop up again.

>Short of copying all the Builder DLLs into Windows subdir is there a
>solution?

>I noticed in the Builder environment,  paths starting with $(bcb) which is
>described as a macro defined in the registry. I searched the registry for
>this string but found nothing. Do I need to add it to the registry? If so,
>please provide details as I know just enough about the registry to get in
>trouble.

>Steve

Re:Missing DLLs


: "Steve Scheele" <ssche...@scitor.com> wrote:

Quote
>When I ran my simple test code (example from the Teach Yourself manual)
>outside of Builder, it complained about missing the CP3240MT.dll and
>BORLNDMN.dll.

These are runtime modules - the documenation should list them, as they
are redistributable, anyway (deploy.txt or something like that).

You can largely avoid this by not building with the "dynamic" Runtime
DLL.

Quote
>I noticed in the Builder environment,  paths starting with $(bcb) which is
>described as a macro defined in the registry.

It is not defined in the registry. $(bcb) resolves to the C++ Builder
root folder, it should be

  HKEY_LocalMachine\Software\Borland\C++Builder\3.0

and there the "Root" value.

--
Stefan Hoffmeister       http://www.econos.de/
No private email, please, unless expressly invited.

Other Threads