Thread: Missing MSVCR80D.dll in windows xp

  1. #1
    C++ SharK The SharK's Avatar
    Join Date
    Mar 2004
    Location
    Denmark
    Posts
    62

    Missing MSVCR80D.dll in windows xp

    I have made this program, using visual studio express 2005
    on windows xp.

    It runs fine on my computer, but when I run it on other computers, it complains about a missing dll file: MSVCR80D.dll

    Is it my IDE, which has such a "special" dll, which isn't on other
    windows xp installations

    Ps. I haven't got the sourcecode here (at work), but here's a
    link to the compiled program:

    http://home20.inet.tele.dk/assembler...us/Taeller.exe


    regards,


    The SharK ;-)
    Studying programming languages,
    you'll ALWAYS be a student ;-)

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    I doubt many people are going to run that since you haven't posted the source code - it could be doing anything.

    I get this problem when trying to run on my other computer. Well, I don't anymore and it was compiled with 2003, but MSVCRT7.dll (or something similar) was missing. I copied it off my PC onto the other one.

    I'm not entirely sure if XP comes with it. My other PC is running XP but didn't have this one so...
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    You need to install the Microsoft Visual C++ 2005 Redistributable Package (x86) on the target machine.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    C++ SharK The SharK's Avatar
    Join Date
    Mar 2004
    Location
    Denmark
    Posts
    62
    Hi Ken Fitlike

    But you see, I expect that the programs I create with Visual Studio Express 2005 works with most windows platforms


    regards,


    The SharK ;-)
    Studying programming languages,
    you'll ALWAYS be a student ;-)

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Quote Originally Posted by msdn, msvc 2005 Redistributable Package
    Supported Operating Systems: Windows 2000 Service Pack 3; Windows 98; Windows 98 Second Edition; Windows ME; Windows Server 2003; Windows XP Service Pack 2
    That looks like most of them to me.

    As an alternative, if you absolutely must, you can always statically link with the c runtime library.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  6. #6
    Registered User
    Join Date
    May 2006
    Posts
    903
    Nah, the problem is much simpler. You have to build the project into Release mode.

  7. #7
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Regardless of whether it's built as a debug or release executable the missing dll problem will remain; the only thing that will change is the presence or absence of the 'd' in the dll file name.
    Last edited by Ken Fitlike; 06-15-2006 at 09:52 AM. Reason: typo
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  8. #8
    C++ SharK The SharK's Avatar
    Join Date
    Mar 2004
    Location
    Denmark
    Posts
    62
    Ok, I'm back from work, so here goes:


    Code:
    // This is a simple counter ;-)
    
    #include "stdafx.h"
    #include <iostream>
    #include <windows.h>
    
    int main()
    {
    	int i = 1;
    	int input = 123;
    
    	std::cout << "Counter v1.0 by The SharK" << std::endl << std::endl;
    	Sleep (2000);
    	std::cout << "Input Password ;-) " << std::endl;
    	Sleep(3000);
    	std::cout << "Pssst.... it's three numbers !" << std::endl;
    	Sleep(5000);
    	std::cout << "Ok, the password is: 12?" << std::endl;
    	std::cin >> input;
    
    	if ( input == 123 )
    		{
        	        std::cout << "CORRECT password !";
    		for ( i = 1 ; i >= 0 ; ++i )
    			std::cout << i << std::endl;
    			Sleep(5000);
    		}
    	std::cout << "WRONG Password :-(" << std::endl;
            std::cout << "Press [Enter] to continue" << std::endl;
    
    	// To force [ENTER]
    	std::cin.get();
    	std::cin.get();
    
    	return(0);
    
    }
    Studying programming languages,
    you'll ALWAYS be a student ;-)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  2. Windows XP (and Vista) shiney look and feel
    By lightatdawn in forum A Brief History of Cprogramming.com
    Replies: 25
    Last Post: 09-18-2005, 02:56 PM
  3. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:16 PM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM