Jump to content

Mijzelf

Member
  • Posts

    464
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    country-ZZ

Everything posted by Mijzelf

  1. My Compaq Armada 7730MT with P166MMX and 48MB, running W95OSR2 boots in 53 seconds (from which 36 seconds is used by the BIOS, maybe because the cmos battery has died long ago). Shutdown in 4 seconds.
  2. FYI, I have a NAS in my home network. (1xW2000, 1xW98SE, 1xMandrive wired, 1xW95, 1xW98SE 1xUbuntu wireless, behind a 2nd router). I first had a Fantec box based on an RDC 2882 chipset. There are (were?) lots of el-cheapo devices based on this chipset. They have a 100Mb network connection, and an USB connector (not to be used on the same moment). The (single) drive is formatted FAT32. The OS is NAS-BASIC. This one worked well for my wired network (after upgrading the firmware with a newer version of a different brand). I had different usernames and passwords for the different shares. On the W9x machines I could only access the shares with the username of the current logon. When accessing a share, a box pops up which asks for the password, with no possibility to apply a username. The wireless W9x machines could not access the NAS for a long time. After about 10 minutes the connection was lost, and you couldn't reconnect either. W9x told the server was down. The Ubuntu box didn't have any problems. I don't know if the wireless was the problem or the 2nd router. Sometimes a file written from a W9x box became readonly for a W9x box, but not for W2000/Linux. This had something to do with the timestamp of the file. A simple 'touch' from the W2000 box made it writeable again. I exchanged this NAS because the build-in scandisk reported errors without giving a way to repair it. A bit scary. Now I've got a ZyXEL NSA-220, which has a Raid1 array, and runs on Linux. I still have different usernames and passwords for the various shares, and it's still impossible for a W9x box to access a share with a different username. Further I haven't found any problems with the device. (Apart from spinning up without an obvious reason, but I don't think this is W9x related).
  3. In that case I can only think of a workaround. You write that the problem is solved when you start typing. So you could send 2 fake keystrokes to the control after loading the file. Set the focus to the control, and use keybd_event to send space backspace to the control.
  4. Did you install the latest firmware?
  5. Do you use SetWindowText() to fill the control? In that case you'd better use EM_STREAMIN. For some code look here :http://blogs.msdn.com/oldnewthing/archive/...10/1444814.aspx.
  6. You're lucky this doesn't crash your program. strcat concatenates 2 strings, and puts the result in the first argument buffer. In your case this is a static string, which has no room for the added data. You could write it this way: char buffer[ 256 ] = "Kladblok is klaar met het doorzoeken van het document en heeft\r\n"; MessageBox(hwnd, strcat(strcat( buffer, strReplacements), " wijzigingen gemaakt."), "Kladblok", MB_ICONINFORMATION | MB_OK); or char buffer[ 256 ]; sprintf( buffer, "Kladblok is klaar met het doorzoeken van het document en heeft\r\n%u wijzigingen gemaakt.", replacements ); MessageBox(hwnd,buffer,...); I think you have to use LoadAcceletators(). This loads a table from recource, which links some hotkeys to menu items.
  7. On scrollbar: Obviously the scrollbar range is not calculated correctly on loading the file. Maybe it helps to turn it off and on? ShowScrollBar( hEdit, SB_HORZ, FALSE ); ShowScrollBar( hEdit, SB_HORZ, TRUE ); On focus: I think you should use EM_HIDESELECTION. AFAIK ComDlg32 is not intended for this. Probably it exports some API functions which do the whole dialog part of the resources you need, like Find and Replace Dialog Boxes
  8. Then I didn't understand your problem. The classname of a dialog is always "DIALOG", so you can't use it to seperate different dialogs. You could useGetWindowText(), which gives you the titlebar of the dialog (if any), or an extra variabele. You can also store some extra data with the handle with Set/GetWindowLong( GWL_USERDATA ). Or use different windowprocs. In which case does the control not update properly, and is it really nessessairy to focus the editcontrol to show the selected text?
  9. I once had a W95 system running for about 3 weeks, when it was doing some data aquisition. Are you aware of this patch? The existance of the patch proves W95 can run for at least 50 days.
  10. GetClassName(), maybe? I suppose it's the SendMessage() line? SendMessage() has four parameters, HWND, UINT, WPARAM and LPARAM. Your compiler doesn't cast a pointer silently to an integer value, so you'll have to do it self: SendMessage(g_hRichEdit, EM_REPLACESEL, TRUE, (LPARAM)pszReplaceText);
  11. There are several ways. You can extract them with a program like 'Resource Hacker'. This will give an .rc file which you can compile with your project. You can also load them dynamically from Wordpad. HMODULE hWordpad = LoadLibrary( "Wordpad.exe" );</P> DialogBox( hWordpad, MAKEINTRESOURCE( resourcevalue ), hParent, DlgProc );</P> FreeLibrary( hWordpad );Pro of this approach is that your program will automatically use the systems language. Con is that your program will fail when Wordpad is not installed.
  12. Does this drive has it's own power supply? If not, it's possible that your usb port just doesn't have enough juice to power the drive. In that case it can help to connect it to a powered hub.
  13. What do you mean? Windows will run fine from drive 'H:'.
  14. NOËL HOEL, one of King Arthur's vassals HOES, plural of hoe
  15. http://www.msfn.org/board/lofiversion/inde.../t75713-14.html
  16. Seems reasonable to me. It's a time machine right? It cannot store 8.1 GB in future when it does right now, because only 6.6 GB will be left.
  17. SORB NORB, a newspaper comic NOOB BOOB, female appendix BOOL, true or false
  18. What about a batchfile? @echo off set GATEWAY1=192.168.1.1 set GATEWAY2=192.168.1.2 set CURRENTGATEWAY=%GATEWAY2% :CheckGateway ping %CURRENTGATEWAY% | find "TTL=" if errorlevel 1 goto ChangeGateway </P><P>:: When we arrive here the gateway was reachable. Wait for a minute :: 192.168.254.254 should be unreachable ping 192.168.254.254 -n 1 -w 60000 >NUL goto CheckGateway :ChangeGateway if "%GATEWAY1%"=="%CURRENTGATEWAY%" goto ChangeGateway2 set CURRENTGATEWAY=%GATEWAY1% call ChangeGateway.cmd %CURRENTGATEWAY% goto CheckGateway :ChangeGateway2 set CURRENTGATEWAY=%GATEWAY2% call ChangeGateway.cmd %CURRENTGATEWAY% goto CheckGatewayWhen you use this code you'll have to retype the | between ping and find.
  19. You can use the profile modus of Dependency walker to find out which dlls/functions it's trying to use before it quits. Sometimes it gives a clue what's the problem.
  20. It rejects to install on my 98SE system. Just installing pops a 'A newer version of Windows is required'. Using the msi file in the temp directory gives 'You need at least W2000'. So maybe it can run on W98, but it's not easy to install.
  21. Strange. On my system \System is fine. Does it complain it cannot find, or does it complain it's the wrong version? In the second case you can use dependency checker to see which msimg32 is actually loaded.
  22. System Requirements: Supported Operating Systems: Windows 2000 Service Pack 4; Windows Server 2003; Windows XP
×
×
  • Create New...