Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Search the Community

Showing results for tags 'Windows'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • The General Stuff
    • Announcements
    • Introduce Yourself!
    • General Discussion
  • Microsoft Software Products
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Server 2008/2012/2016
    • Older Windows NT-Family OSes
    • Windows 9x/ME
    • Other Microsoft Products
  • Unattended Windows Discussion & Support
    • Unattended Windows
    • Other Unattended Projects
  • Member Contributed Projects
    • Nuhi Utilities
    • Member Projects
    • Other Member Contributed Projects
    • Windows Updates Downloader
  • Software, Hardware, Media and Games
    • Forum Categories
    • Mobile Devices
  • Customizing Windows and Graphics
    • Customizing Windows
    • Customizing Graphics
  • Coding, Scripting and Servers
    • Web Development (HTML, Java, PHP, ASP, XML, etc.)
    • Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
    • Server - Side Help (IIS, Apache, etc.)
  • X's Concepts
  • The Compaq Computer Corporation Club's Discussion

Calendars

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype

Found 61 results

  1. 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;}
  2. Yesterday, midway through a skype call, skype suddenly stopped working, so I tried to reopen it. My computer screen then went black to be followed by a blue screen with SYSTEM_SERVICE_EXCEPTION at the top. I have read numerous posts about this with no set solution, so here is a link to the dump file: https://drive.google.com/file/d/0B8IfJMTnm6ShcmtjUGJ5SDJIbDQ/edit?usp=sharing I uninstalled Skype, and I tried to reinstall it. The blue screen came up mid-way the install. This happens every time I try to install it. If anyone has a solution, it would be greatly appreciated.
  3. Hello, Can I use Windows Embedded POSReady 2009 as my everyday OS. For internet, games and listening to music? Or can I only use Windows XP Home Edition/Professional for that?
  4. Hi there, I have trouble with windows' builtin file-protection. When activated, it keeps asking for the original XP-CD and won't accept my modified nlite-disk. During unattended installation WFP is turned off to speed-up the process. With a reg-file I re-enabled WFP and got described problem. For deactivation I used the option in nlite before compiling the disk. I already found out on microsoft's homepage that the two files IMS.inf and fp40ext.inf are responsible for that behavior. Does anybody know how to change them so WFP will work as usual with a nlite-cd? Forum-search didn't give me any results. Edit: The reg-file used to re-enable WFP: Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"SfcQuota"=dword:ffffffff"SFCDisable"=dword:00000000It needs a reboot to work.
  5. Hey guys, I'm new here & this is my first post. I really hope this hasn't been brought up before because I already searched the forum & found nothing useful... Prologue: I'm trying to build a very small & basic installation of Windows 2000 that doesn't even have network support, it will be used primarily for games & some other programs. I will put it in a VHD (Virtual Hard Disk) file then copy that file to a USB Stick, that file will then be loaded into RAM (yep, the whole VHD file) & Windows will be started & used directly from there. I'm following THIS guide if anyone wants to know. SO, I've already used nLite to make several "lite" builds of 2000 before but this time it looks like I stripped the install folder too much to cause some problems. Note that that these problems that I'm about to mention never happened before & only happened with my latest, super stripped build so it's certainly something that I REMOVED that caused them... Here we go: 1. Setup can't find drivers for things like Battery, Volume (NOT audio) & something called "hdc" besides some other things, I'm pretty sure I didn't remove any drivers related to those, especially Battery, you can check my .INI file at the bottom. 2. Serial Key no longer works; I tried my personal one many times & even tried different ones from the Internet, no luck. So that's about it for now, the Serial Key prompt is the farest I've went into setup anyway, any help is appreciated... BTW I'm using a Windows 2000 SP4 CD as my base, you can view & download my settings file HERE (Also attatched in this document). Cheers! Stripp3d.ini
  6. I remember that, back in 2006, when Microsoft discontinued support for Windows 98SE, there was an Autopatcher program created to deal with problems in Windows 98SE. It was a really elegant program that even created extra features for the OS never dreamed of by Microsoft. I was wondering if anyone was planning to do the same thing for XP?
  7. Official website: http://www.reactos.org/ Download: http://www.reactos.org/download-reactos Changelog: http://www.reactos.org/wiki/ChangeLog-0.3.16 Enjoy !
  8. Hi everyone, I'm new on this forum . I've got an untouched ISO of Windows XP SP0, the RTM version, build 2600, without any service packs. I would like to install it on my PC, but because I've got SATA hard disk, and IDE mode can't be enabled from BIOS (there isn't such option) I must slipstream drivers with nLite. I slipstreamed my SATA drivers "ICH9M-E/M SATA AHCI Controller", and the process was succesfully. Then I made an ISO file and burned it with nLite. When I boot from cd, you know there's the first "MS-DOS like" setup part, and in the lower bar it shows the components loaded, like "Loading <Kernel Debugger DLL> and other things... well... it doesn't load iaStor.sys! And I get then a 0x0000007B bsod. Any helps? Thanks in advance!
  9. Hello! There are many similar topics regarding Windows 8 deployment... I tried to google and check out as many as I could. Wasn able to solve my issue though. I'm writing here, hoping that someone might be able to help me out. I am trying to deploy Windows 8 put problems with starting it. I have new Samsung laptop, where I have installed Windows 8 Pro. Iinstalled programs, created user-accounts etc.Then I bootel laptop from USB WinPE media and captured C:\ drive as a *.WIM file. So far everyting OK. I got second laptop (same model). Booted it also from Winpe USB media and used Diskpart to clean-create partition and format it as NTFS. I created just this one partition. On that partition I applyed the wery-same image that I previously created. Image was applyed and then started problems. --> bcdboot c:\windows is not working. --> Failure when attemting to copy boot files. --> I also tried bcdboot c:\windows /s c: --> Boot files successfully created. But after this OS isnt booting, still. Anyway, this is where I got stuck. Please help me out.
  10. I have windows 7 ultimate that i bought last year, and now i want to format my computer but i want to make an unattended version for my one and to include the security updates on that version. Is there a place that i can find and download easly windows 7 updates? I search on microsoft windows 7 update and find this: http://search.microsoft.com/en-us/DownloadResults.aspx?q=Security%20Update%20for%20Windows%207&ftapplicableproducts=%5eWindows&first=241&FORM=PEME8 I search for updates that start from 1.5.2012 until today. How and where can i easly find and download them? Where can i find them?
×
×
  • Create New...