Click to See Complete Forum and Search --> : DLL'S AND INSTALLATION


kapil
April 4th, 1999, 12:55 PM
I made a software in VC++5.0..but when i copied the executable from win95 to win NT an dtried to run it, it said that some DLL'S are not available..i don't think my application uses any shared DLL'S.
how do i fix this problem? is this problem specific to win NT?
i am thinking of making an install program for my appliaction, but i guess this problem has to be fixed to make the application portable..
so someone please help me!

Fabian
April 4th, 1999, 04:58 PM
Ok, first thing to do is open your executable with quick view and take a look to the Import Table, there you can see all the DLLs that your exe needs, check which are part of the Windows and which are not, those are what you need to copy and regiter when you distribut your application.

Fabian

wallys
April 5th, 1999, 03:50 PM
I have seen a similar thing (I just posted it with the subject 'Registration'). I have been told I need to register the DLL's for NT. I don't know if that's correct or not. That was the reason for my post along with the fact that I don't know how to register a DLL.

Good Luck

ValerieB
April 5th, 1999, 05:21 PM
You can use regsvr32 to register your DLLs. The syntax is:

regsvr32 <filename>

To unregister a file, use the "-u" option:

regsvr32 -u <filename>

Hope this helps!

Valerie Bradley
http://www.synthcom.com/~val
val@synthcom.com

April 5th, 1999, 05:58 PM
Are you using MFC? If you are, check to see if you are using the shared DLL or the static library implementation.

If your app is using the shared DLL implementation, you need to make sure that all machines you try to run on have the relevant MFC DLLs, either by making an install kit that will copy the required DLLs, installing Visual C++, or figuring out which DLLs you need (by copying the DLLs Windows reports one at a time as missing until it stops complaining) and copying them manually.

You can also switch to the static libary implementation of MFC, which gives you a single portable (albeit larger) EXE.

Good luck.

Dave Relyea

Aureliano Lopez
April 5th, 1999, 06:05 PM
Try the Dependency Walker Tool. It is great to find all the DLL imports.

Regarding the registrations, it all depends on if you are coding COM (ActiveX) objects, which I don't think you are, because otherwise you would definitely know what does it mean to register a DLL.

Aureliano