Type: Posts; User: OReubens
Search took 0.09 seconds.
I'm trying to use WinInet (via the MFC wrappers) to read pages off a HTTPS server that is set to accept but not require certificates. It either authorizes via a certificate or uses basic...
This is actually the case for threads too.
Avoid sharing resources is a good way to avoid having to synchronize :)
I got that :)
Just throwing it in here because Sleep() often gets introduced in MT code "to make it work", "because it doesn't work if that Sleep() isn't there". When it's actually a deeper design...
5) you don't need a separate event to notice the thread has ended, you can WaitFor..() the thread handle itself. It'll become signaled when the thread has ended.
You might have been incorrectly...
If the language allows you to do what you're trying, then technically that makes it "legal" (or 'syntactically valid' more correctly, legal has more to do with justice/law). Whether that code then...
A thread doesn't HAVE to yield explicitely in order for other threads to get time, but Sleep(), WaitFor...() and several other things will certanly cause the OS to see that as "this threads doesn't...
I think you're referring to 'fibers' ? when run on a single thread ? (it's still possible to have fibers in a pool executing on multiple threads).
If yes, then you don't need synchronisation...
Wait... codeguru members write stuff that is wrong ?
booting in windows (from an active partition)
then from windows change the active partition so next reboot will be another OS
yes, this can be done.
Does that mean your diagnostic...
November 24th, 2014, 08:22 AM
Do not call ExitThread(), this aborts the thread at that point, without allowing proper cleanup of thread stack based variables.
There is only ONE proper cleanup and that is for the thread procedure...
November 24th, 2014, 08:01 AM
hence... if you want the free space on the volume, you should query the free space for the root path.
Anything else might be more/less than that depending on what the path really is.
November 24th, 2014, 07:59 AM
From within windows: may not even be possible depending on what sort of raw access you get to the partition information. On a typical windows, you can't access this other than writing a kernel disk...
November 21st, 2014, 08:13 AM
You're not really saying what kind of result you want, and/or how near to the ideal you want things to be.
Do you want an outer outline ? an inner outline ? An average ? A weighted curve ?...
November 21st, 2014, 08:01 AM
Just declaring stuff atomic 'randomly' while it makes each individual element atomic is a surefire way to get into deadlocks and other forms of hard to debug problems.
November 20th, 2014, 07:58 AM
Assuming you have the issue too (even though you should have created a new post instead of resurrecting ancient ones).
See MSDN for SendInput().
November 20th, 2014, 07:55 AM
Encrypted exe's tend to be "evil" the kind of exe's that contain malicious code that they want hidden/obfuscated from an antivirus.
THere's no good reason for a well behaving exe to be encrypted. ...
November 20th, 2014, 07:46 AM
November 20th, 2014, 07:42 AM
then you have Always been wrong.
use SINGLE forward slashes
or DOUBLE backslashes (because that's how C/C++ escapes strings).
if you have a compiler supporting the new c++11 literal string...
November 19th, 2014, 07:34 AM
see MSDN on GetVersion/GetVersionEx for version
Machine/Hardware ID may not be available depending on whether the user allowed this. see GetSystemInfo on MSDN
November 18th, 2014, 09:13 AM
If he already obtained a password list, the real damage is already done imo. It just takes a bit of tenacity/creativity from there on.
I could porbably figure it out from that list and a bit of...
November 18th, 2014, 08:17 AM
outputing to cout/file: yes
input via a file: yes
handling the command line: yes (it's the primary use of console exe's afterall)
input via cin: no, just no. It doesn't work well, and it behaves...
November 18th, 2014, 07:56 AM
There's no way around the fact that 10^12 times round a loop will take time. At these amounts, even a single Ás per loop will end up taking 10^6 seconds (or just over 11 days).
If inside that...
November 17th, 2014, 09:55 AM
One cannot become a good encryption specialist, without also being a good cracker.
part of knowing how and where to protect comes from knowing how a cracker goes about it's things.
November 17th, 2014, 09:50 AM
looks like an encryption that turns 8bit binary data into 5bit "readable text"
other than that, hard to tell. it's not a straightforward binary to 5bit conversion or the "password" and "Password"...
November 17th, 2014, 08:42 AM
educators should just downright stop trying to make students produce "interactive" apps via the console.
it's not even knowledge they'll be able to continue to use if they get hired as a programmer...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.