Search the Community
Showing results for tags '95'.
-
Anyone here successful using USB Webcams and using Webcam software in Windows 9X / ME? Intel USB 2.0 and NUSB drivers don't appear to have a proper driver to add USB Webcams.
-
I was looking for a video card for Windows 98 SE with a driver disk and I found one for Windows 95. I hate the way Windows 9x and how Windows 2000 looks when no graphics driver is installed (or installed correctly I guess). I know Windows 98 SE should at least provide compatibility with Windows 95 drivers, but does Windows 95 drivers allow Windows 98 SE to have full true 16, 24, or 32bit graphics or does Windows 95 drivers make Windows 98 stay on low resolution 256 colors?
-
I seem to be unable to create a "fully" working multiboot/install DVD using the "Create Windows 98/ME/NT/2K/XP/2003 all in one installation DVD" I replaced Windows 2003 with Windows 95 (Version C) as I planned to put 2003 on a different DVD with newer versions of windows on it. When I try booting any of the disk I put on there they show an error about not being able to find the setup/installation files. For some reason Win 95 - ME will still work if I type "setup" (D:\WinME\setup for Windows ME installer) and continue normally. Windows NT 4.0 doesn't boot at all and when I attempt editing the iso and add the I386 for WinNT to the root folder it will boot but BSDO when setup starts. Windows 2000 and XP both boot but fail to start at all giving me a "insert Win 2000/XP disk into drive A:" error and I can't find a way to fix that at all. I use UltraEdit (Version 22.0.0.66) and Oracle VirtualBox (Version 4.3.30 r 10610 64-Bit) on Windows 10 Tech Preview 64-Bit (Build 10270) to build/test the ISO. Message me for images/files if you need them. If anyone has any ideas please help or suggest another method of combining these disk to a DVD Iso or USB drive. Guide I used: http://www.magiciso.com/tutorials/miso-create-multi-os-cd.htm Link to images of the errors/iso: https://drive.google.com/open?id=0B9uFvN9K3tPWfnpmTVJ1VnkzdThQQTNjZ1NuUE53WFdZdk1jQWFTVUtocGZYY3E5Z0lTMms&authuser=0 P.S.: If I posted this to the wrong forum section, just feel free to tell me where it should be or move it there if possible.
-
I want to make my programs compatible with all versions of Windows from Windows 95 to Windows 8. I'm currently working on a small word processor and I need to have working open and save file requesters. However, I can't seem to get the GetOpenFileName function to work properly. This is the code for a simple bitmap viewer program I made. It runs fine on Windows 98, XP, Vista, and 7, but on Windows 95, GetOpenFileName fails, and CommDlgExtendedError() returns error code 1 (CDERR_STRUCTSIZE). Now, I specified sizeof(ofn) for ofn.lStructSize, which should be valid, and it is on other Windows versions. Any ideas why this happens? #include <windows.h>#include <stdio.h>#include <commctrl.h>#define MSGBOX_ERROR(MESSAGE) MessageBox(NULL, MESSAGE, NULL, MB_OK|MB_ICONERROR)#define COMMAND_EXIT 9000#define COMMAND_OPEN 9001#define COMMAND_STRETCH 9002LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam){ static BOOL IsStretched; static HBITMAP hBmp; switch(msg) { case WM_PAINT: { if(hBmp==NULL) //Leave WM_PAINT to DefWindowProc if no bitmap is loaded. goto defwndproc; RECT client_rect; GetClientRect(hwnd,&client_rect); BITMAP bmp; PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd, &ps); HDC hdcmem = CreateCompatibleDC(hdc); HBITMAP hbmOld = SelectObject(hdcmem, hBmp); GetObject(hBmp,sizeof(bmp),&bmp); if(IsStretched) StretchBlt(hdc,0,0,client_rect.right-client_rect.left,client_rect.bottom-client_rect.top,hdcmem,0,0,bmp.bmWidth,bmp.bmHeight,SRCCOPY); else BitBlt(hdc,0,0,bmp.bmWidth,bmp.bmHeight,hdcmem,0,0,SRCCOPY); SelectObject(hdcmem, hbmOld); DeleteDC(hdcmem); EndPaint(hwnd, &ps); break; } case WM_CREATE: { HMENU hMenuBar = CreateMenu(); HMENU hFileMenu = CreatePopupMenu(); HMENU hViewMenu = CreatePopupMenu(); AppendMenu(hFileMenu,MF_STRING,COMMAND_OPEN,"&Open"); AppendMenu(hFileMenu,MF_SEPARATOR,0,NULL); AppendMenu(hFileMenu,MF_STRING,COMMAND_EXIT,"&Exit"); AppendMenu(hViewMenu,MF_STRING|MF_UNCHECKED,COMMAND_STRETCH,"&Stretch to fit window"); AppendMenu(hMenuBar,MF_STRING|MF_POPUP,(UINT)hFileMenu,"&File"); AppendMenu(hMenuBar,MF_STRING|MF_POPUP,(UINT)hViewMenu,"&View"); SetMenu(hwnd,hMenuBar); IsStretched = FALSE; break; } case WM_SIZE: if(IsStretched) InvalidateRect(hwnd,NULL,FALSE); break; case WM_COMMAND: switch(LOWORD(wParam)) { case COMMAND_OPEN: { OPENFILENAME ofn; char szFile[MAX_PATH]; ZeroMemory(&ofn,sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = hwnd; ofn.lpstrFile = szFile; ofn.lpstrFile[0] = '\0'; ofn.nMaxFile = sizeof(szFile); ofn.lpstrFilter = "Windows Bitmap (*.bmp)\0*.bmp\0All Files\0*.*\0"; ofn.nFilterIndex = 1; ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = 0; ofn.lpstrInitialDir = NULL; ofn.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST; GetOpenFileName(&ofn); //Testing to see if GetOpenFileName worked if(fopen(ofn.lpstrFile,"r")==NULL) { char errorbuf[20]; sprintf(errorbuf,"Failed to open a file. Error code: %hu",(unsigned short)CommDlgExtendedError()); MSGBOX_ERROR(errorbuf); return 0; } hBmp = LoadImage(NULL,szFile,IMAGE_BITMAP,0,0,LR_LOADFROMFILE); if(!hBmp) MSGBOX_ERROR("Failed to load bitmap."); InvalidateRect(hwnd,NULL,FALSE); UpdateWindow(hwnd); break; } case COMMAND_EXIT: goto close; case COMMAND_STRETCH: IsStretched = !IsStretched; InvalidateRect(hwnd,NULL,TRUE); break; } break; case WM_CLOSE: close: ExitProcess(0); default: defwndproc: return DefWindowProc(hwnd,msg,wParam,lParam); } return 0;}int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){ InitCommonControls(); WNDCLASS rwc; rwc.style = 0; rwc.lpfnWndProc = MainWndProc; rwc.cbClsExtra = 0; rwc.cbWndExtra = 0; rwc.hInstance = hInst; rwc.hIcon = NULL; rwc.hCursor = LoadCursor(NULL, IDC_ARROW); rwc.hbrBackground = (HBRUSH)(COLOR_APPWORKSPACE+1); rwc.lpszMenuName = NULL; rwc.lpszClassName = "yo mama"; RegisterClass(&rwc); HWND hMainWnd = CreateWindow("yo mama", "Bitmap Viewer", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 450, 450, 0, 0, hInst, 0); ShowWindow(hMainWnd,nCmdShow); UpdateWindow(hMainWnd); MSG msg; msgloop: GetMessage(&msg,NULL,0,0); TranslateMessage(&msg); DispatchMessage(&msg); goto msgloop;}