Archive: Registering DLL's


Registering DLL's
Hi,

I was wondering how do you know if you should register
a DLL?

Should you always register an
executable program that you've created?

I'm really struggling trying to get a program to
install that I've created with Visual C/C++ express.
Dependancies and all. I've found some of the DLL's
but don't know whether or not I should register them
or not. Keep getting a configuration error when the
program tries to startup.

Thanks, Mike


You only need to register DLLs that need registering, e.g. an IE plugin or ActiveX control. A regular DLL does not need any registering it only needs to be installed in directory where the main application resides.


Thanks for responding...

I was looking thru the post when I found a program
that displays the modules or dll's used in a process.

One of the dll dependancies I need was in
C:\WINDOWS\Win6x6\...(very longname with many hex numbers)...\(dll's).
When I install my program on another PC it can't
seem to find this dll.

Can anyone tell me whether or not these are registered
dll's? Or what this "Win6x6" directory is?

I haven't had a chance to investigate whether or not
the dll in question is on the new PC or not. I'm assuming
NOT since my executable can't find it. It could be that
these dll's were installed by MS Express or the MS Lib's.

Thanks, Mike


The directory is 'winsxs', not 'win6x6', incidentally.

If you want to move your exe to another machine, it'll need the visual C runtimes. Do a search for 'visual c redist' and that should have some helpful information. Also, make sure it's the release, not the debug build of your software.


I will give the redist a try. I think
this is the answer to my problems.

So a big thanks to you!

Mike :up: