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)