Click to See Complete Forum and Search --> : DLL Registration


RaviVarma
March 30th, 1999, 03:44 AM
Hi,

I have a problem with DLL registration. My problem is like this. I have developed a COM DLL using ATL in VC++(5.0). I am able to register that DLL in Win 95/NT English version. But when I want to install on Danish (Win 95) it is failing. I found that In Danish 95 ATL.DLL is missing. I registered ATL.DLL in Danish and it was registered. But again if I want to register my DLL it is failing. It is giving the following error. “LoadLibrary(“c:\test.dll”) Failed. GetLastError Returns 0x00000485”.

I tried in another way. It is like this. I developed a DLL in VC++ using Danish Win 95. Even that DLL is not registring any other machine ( Win 95 English and Danish).

My DLL is not registring because some required DLLs are missing in the target machine. So how to find which DLLs are missing.

Please if anybody knows the solution please let me know. Any help is highly appreciated.


Thanks in advance.

Daren Chandisingh
March 30th, 1999, 05:31 AM
Does the target machine have VC++ installed? If not there is a good chance

that some of the redistributable DLLs are not on the machine. If you decided

to link dynamically to MFC then you'll need to ensure that those DLLs are

installed on the taget machine. From the help:


If you dynamically link your application to the MFC library, you will, at a minimum, need to redistribute MFCx0[U].DLL and MSVCRT.DLL, where x is the version number. MFCx0[U].DLL includes all of the basic framework classes. All MFC DLLs use the shared version of the C run-time library; thus, MSVCRT.DLL is required. If your application uses the MFC database classes, such as CRecordset and CRecordView, you will need to redistribute ODBC and any ODBC drivers that your application uses.

Benoit Lariviere
March 30th, 1999, 06:34 AM
Use Depends.exe to know which DLL is missing. (It will be darker in the list of dependencies.)