You can write it as one line of code, do you expect to find something shorter ?
What's wrong with declaring a new class?
That's what you asked for.
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
Well, you may obtain a 16 bit bitmap from a 24 bit one: it's a quite lenghty coding task, but it isn't too difficult (starting point: CreateBitmap documentation [^]). If you ahve the option of using GDI+ then have a look at Bitmap::ConvertFormat method [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
Maybe you can write a program to put bytes of random values to the unused space of the disk, for example, by creating a large file that fills the whole disk space. That will erase all deleted files, I believe.
That works as long as he erases the files he wants to delete (using his application.) If the program wants to erase all the deleted files and folders (they might be deleted by other programs) it still needs a way to get rid of all the traces of those files on the disk.
After debuging a MFC Application ,then closing it produce the following
message in the output window .
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.