CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 1999
    Location
    Indore India
    Posts
    34

    DLL'S AND INSTALLATION

    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!


  2. #2
    Join Date
    Apr 1999
    Posts
    21

    Re: DLL'S AND INSTALLATION

    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


  3. #3
    Join Date
    Apr 1999
    Posts
    8

    Re: DLL'S AND INSTALLATION

    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


  4. #4
    Join Date
    Apr 1999
    Location
    Portland, OR, USA
    Posts
    18

    Re: DLL'S AND INSTALLATION

    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
    [email protected]

  5. #5
    Guest

    Re: DLL'S AND INSTALLATION

    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


  6. #6
    Join Date
    Apr 1999
    Posts
    3

    Re: DLL'S AND INSTALLATION

    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


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