Msvcrt.dll error!

This is a discussion on Msvcrt.dll error! within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hello, Whenever I try to install a program on my machine ( Windows 2000 pro, Service Pack 3 ) I ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571

    Msvcrt.dll error!

    Hello,

    Whenever I try to install a program on my machine ( Windows 2000 pro, Service Pack 3 ) I often get an error message. Something along the lines of "MSVCRT.DLL is not compatible with Win32s". Not every program does this, but it really occurs on programs originally for Win95 or 98. I know these programs used to work on my old computer with win2k but now I get this error message. Maybe file versions are messed up? Anyone help?? Thanks!!

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Win32s was a group of dlls that went onto Win 3.11 and allowed it to run 32 bit programs......It wasnt a real platform....more a taster for 32Bit windows and it didnt spark much interest

    It was soon dumped with the onset of Win95 and kind of buried by M$.....

    God know's what functions Win32s had in MSVCRT.DLL...these days it's full of the Std-C funcs that you use every day (fopen, printf....)....I doubt the Win32s version funcs were std compilent

    If the program was originally designed using Win32s then maybe its time for a newer version....

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    The programs I'm trying to install weren't designed for win32s. They are games like Command and Conquer: Red Alert2. Also I get error messages saying this game requires Win95 or Win NT. Like I said, this isn't the first time I'm trying to install them, just all of the sudden I started getting these messages, and not just on one program either. I get this error on many programs now. I ran system file checker and it didn't find any errors (version conflicts , missing files). So the MSVCRT.DLL is just like C standard functions, wierd.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by MrWizard
    The programs I'm trying to install weren't designed for win32s. They are games like Command and Conquer: Red Alert2. Also I get error messages saying this game requires Win95 or Win NT. Like I said, this isn't the first time I'm trying to install them, just all of the sudden I started getting these messages, and not just on one program either. I get this error on many programs now. I ran system file checker and it didn't find any errors (version conflicts , missing files).
    Hmm...maybe some conflict of some sort.....cant give any further answer I'm afraid.....

    Originally posted by MrWizard

    So the MSVCRT.DLL is just like C standard functions, wierd.
    Yup!!

    Code:
    # include <windows.h>
    
    typedef int (__cdecl *PRINTF)(const char*,...);
    
    PRINTF printf;
    
    int main ()
    {
    	HMODULE hMod = LoadLibrary("MSVCRT.dll");
    	if(!hMod){
    		MessageBox(HWND_DESKTOP,"Could not find MSVCRT",NULL,MB_OK);
    		return 1;
    	}
    	printf = (PRINTF)GetProcAddress(hMod,"printf");
    	if(!printf){
    		MessageBox(HWND_DESKTOP,"Could not find printf",NULL,MB_OK);
    		return 1;
    	}
    
    	printf("%s","Hello World\n");
    
    
    	printf = NULL;
    	FreeLibrary(hMod);
    	return 0;
    }
    All without <stdio.h> and using only kernael32.lib (needed in every process) and user32.lib (need for MessageBox API)

  5. #5
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    does Win2K allow you to run stuff in compatablility mode like XP does?

  6. #6
    MrWizard
    Guest
    Originally posted by frenchfry164
    does Win2K allow you to run stuff in compatablility mode like XP does?
    It does. I tryed that also but it did not work

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 09:18 PM
  2. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 02:17 PM
  4. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21