Everything posted by Mijzelf
-
I want to make a Notepad alternative in C
According to Wikipedia, version 4.52 is the first to support W95. That *could* mean that you are creating 16 bit software. When you are creating 32 bit software, look if you can target for Windows 4.0. (That should be a linker option). If you can't, try to add the DS_3DLOOK flag after STYLE.
-
I want to make a Notepad alternative in C
if(crSel.cpMin != crSel.cpMax) { DWORD dwBufferSize = crSel.cpMax - crSel.cpMin + 1; pszText = GlobalAlloc(GPTR, dwBufferSize); Maybe cpMax is -1? In that case you alloc 0 bytes to contain all text.
-
Delay before a setup program runs
Maybe Process Monitor can give you a clue what it's waiting for.
-
VPN Connected but...
In most cases you can't change the subnet of the VPN. To change the subnet of the LAN, use a browser to open the router setup screen, (use the 'default gateway' address), and search for DHCP server settings. It will probably give addresses in the 10.0.0.x range, or 192.168.0.x range. Change that to 10.0.1.x or 192.168.1.x or something like that.
-
VPN Connected but...
Standard pitfall when using VPN: the subnet of the VPN *must* be different of the subnet of the LAN.
-
Change a Letter Game
RUNO, an acient king of the Britons. RENO, the biggest little city. REDO, Un-undo
-
I can't install Windows 98
Seems to me that (among other problems) you floppy drive has died. Try if you can change the bootsequence to CDROM,C, and boot from W98SE cd.
-
I want to make a Notepad alternative in C
Yes, AFAIK that is the most appropriate way. To ensure the buffer is big enough you could also use GetWindowTextLength(), since the selected text cannot be bigger than the total text. Of course this can be inefficient when you only want to copy a few bytes. As you may have noticed, EM_GETSELTEXT is a dangerous function, since you can't provide the size of the buffer you're using. So I would avoid using it, and use a combination of EM_EXGETSEL and EM_GETTEXTRANGE
-
I want to make a Notepad alternative in C
You'll have to be a bit more specific. There are serveral different ways to get the needed buffer size. Sometimes there's you can provide a null-pointer in which case the function returns the needed buffersize. Sometimes there's a seperate function to ask for the needed buffersize. Sometimes the only way is polling. (Provide a buffer, and while the system tells it's not enough, enlarge it.)
-
Change a Letter Game
JANO, a small town in Honduras JANE, a subway station in Toronto JANG, One of the Marshall Islands
-
I am getting random long delays when opening folders
Sometimes my explorer starts using 100% processortime when I open a folder, without showing anything. I don't know if it will stop doing so when I wait long enough (too impatient). When it happens I use Process Explorer to kill the thread in Explorer which is consuming all time, and this solves the problem.
-
delete some file after silent install?
%programfiles% is a complete path. So the command should be del %programfiles%\Common Files\xxx\xxx\xxx\some.exe
-
Change a Letter Game
SAGO, starch from the sago palm DAGO, disdainful name for a person from Spain, Portugal or Italy DADO FADO, portuguese music genre
-
Enable48BitLBA | Break the 137Gb barrier!
? A standard 1.44MB floppy has 2 sides, 18 sectors/track, 80 tracks and 512 bytes/sector. This gives 2*18*80*512 bytes = 1474560 bytes, which is 1.40625 MiB. Maybe it has a formatted size of 1.38 (MB? MiB?), but the used filesystem is not a part of the floppy specification.
-
Enable48BitLBA | Break the 137Gb barrier!
I think foppy size is derived from its physical geometry, so you should write 80*18*2*512 = 1474560 instead meaningless 1.44*1024*1000 even if the result is same. 1.44*1000*1024 is not meaningless. It's historical grown. The predecessor was a 720kB (720*1024) floppy. This floppy size was exactly doubled, making a 1440kB floppy, in short 1.44MB. This should have been 1.406MB, of course, but how could the marketor say he doubled the size of the '720', and then sell you a floppy which is not twice as big?
-
Change a Letter Game
I cancel Wark, since it already has been used. WACO, a city in Texas.
-
[Solved] command.com with a scrollbar
I suppose you mean stdout. Did you try '| more'?
-
How to Print an MS DOS Screen WIN 98SE
It's a common problem that dos programs can't print to a printer which is not connected to a printerport. Maybe this can help you: http://www.columbia.edu/~em36/wpdos/winprint.html#usbprint
-
Help needed with new hard drive
Can you boot to dos with your recovery CD? In that case, try typing sys C:<enter> from the command prompt. But first check in the BIOS setup if there is an option 'virus protection' or something like that, and disable it. This option protects the first sector on the disk from beeing written. This sector has to be written to make the disk bootable.
-
Change a Letter Game
Hey Anonymous user, do you have a script running watching this thread? WARK, yet another river
- Change a Letter Game
-
What's the most sensible way to defragment?
When running in safe mode no necessary programs will be started. On the other hand, no chipset drivers will be started either, so the disk access will be (much) slower.
-
Change a Letter Game
ZUNK, a digital image editor HUNK
-
latest VLC player no longer works
Probably you'll have to download unicows.dll. Put the dll in your system directory.
-
Change a Letter Game
ZUNE, the MS iPod.