Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: OReubens

Page 1 of 80 1 2 3 4

Search: Search took 0.09 seconds.

  1. WinInet, accesing HTTPS server with optional certificate

    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...
  2. Replies
    7
    Views
    136

    Re: strand vs multithreads

    This is actually the case for threads too.
    Avoid sharing resources is a good way to avoid having to synchronize :)
  3. Re: How to terminate a thread from outside properly?

    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...
  4. Re: How to terminate a thread from outside properly?

    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...
  5. Replies
    2
    Views
    146

    Re: Class of String Collections

    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...
  6. Re: How to terminate a thread from outside properly?

    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...
  7. Replies
    7
    Views
    136

    Re: strand vs multithreads

    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...
  8. Replies
    26
    Views
    1,532

    Re: A question regarding double-checked locking

    Wait... codeguru members write stuff that is wrong ?
  9. Re: How to tell if Windows partition is active?

    what about..
    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...
  10. Re: How to terminate a thread from outside properly?

    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...
  11. Re: Getting Free Disk Space of certain directory

    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.
  12. Re: How to tell if Windows partition is active?

    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...
  13. Re: Matlab/Octave code/technique for making thin lines from thicker lines

    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 ?...
  14. Re: static class member in multithreaded environment

    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.

    Simultaneous read/write...
  15. Re: Injecting keyboard scan codes at driver level

    Assuming you have the issue too (even though you should have created a new post instead of resurrecting ancient ones).

    See MSDN for SendInput().
  16. Replies
    2
    Views
    237

    Re: decrypt exe file maked in Visual C++

    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. ...
  17. Replies
    3
    Views
    184

    Re: Finding Machine IDs

    see #2.
  18. Replies
    9
    Views
    288

    Re: How to delete records in .txt file

    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...
  19. Replies
    3
    Views
    184

    Re: Finding Machine IDs

    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
  20. Replies
    11
    Views
    412

    Re: decode this....

    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...
  21. Replies
    17
    Views
    561

    Re: cin and cin.get()

    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...
  22. Re: Where does my Application need redesigning and Speeding Up?

    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...
  23. Replies
    11
    Views
    412

    Re: decode this....

    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.
    I've seen...
  24. Replies
    11
    Views
    412

    Re: decode this....

    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"...
  25. Replies
    17
    Views
    561

    Re: cin and cin.get()

    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...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center