CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 1999
    Posts
    1

    DLL Registration



    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.



  2. #2
    Join Date
    Apr 1999
    Posts
    32

    Re: DLL Registration



    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.

  3. #3
    Join Date
    Mar 1999
    Posts
    1

    Re: DLL Registration



    Use Depends.exe to know which DLL is missing. (It will be darker in the list of dependencies.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured