Search:

Type: Posts; User: adeyblue

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    24
    Views
    2,485

    How are these statements any different? Some...

    How are these statements any different?
    Some programmers used a bunch of code written by a different programmer but the C++ people are horrid incompetent boobs for not doing everything themselves...
  2. Replies
    6
    Views
    1,730

    The original code requires the rest of the files...

    The original code requires the rest of the files from the github link in the blog post, not just what was pasted into the post.
  3. Replies
    3
    Views
    1,694

    There's one built into Windows, but to get useful...

    There's one built into Windows, but to get useful callstacks easily you have to use a pdb-debug-type-outputting-compiler and WinDbg / cbd / ntsd & friends with it. Without either or both of those,...
  4. Replies
    5
    Views
    1,379

    One pretty obvious problem is that you're not...

    One pretty obvious problem is that you're not opening the file in binary mode. On Windows text mode is the default with the system CRT and unlike some other systems, actually matters.
  5. Thread: Spankings

    by adeyblue
    Replies
    12
    Views
    1,188

    Not /that/ wise a journalist, Portugal lost to...

    Not /that/ wise a journalist, Portugal lost to Albania during qualification & to Germany at 2014 World Cup, those were within 2 years of the start of the tournament. England were the only team that...
  6. You have no option. If you want to use that...

    You have no option. If you want to use that download that's the only game in town to browse it.


    I started writing my own CRT at one point, but then I gave up when I thought 'why bother doing all...
  7. What freddie said. Passing NULL where it...

    What freddie said. Passing NULL where it shouldn't make sense to do so doesn't always mean 'do nothing'. For example, the function that TerminateProcess calls to actually stop a process takes a...
  8. This: GlobalLock(hg); ...

    This:


    GlobalLock(hg);
    lhs.read(reinterpret_cast<char*>(&hg),sizeof(streamsize));


    wants to be something like this. Otherwise all you're doing is overwriting the HGLOBAL.
  9. The tool you want is OBS...

    The tool you want is OBS (Open Broadcaster Software), and it's free. It's the main thing people use for streaming games to twitch, though it can record MP4's to your hard drive as well/instead
  10. Replies
    3
    Views
    641

    Since you have the HDC, what's wrong with the...

    Since you have the HDC, what's wrong with the normal GetPixel and SetPixel functions? Yes, they're slow, but calling into the OS three times instead of one isn't likely to be any faster. They're also...
  11. Replies
    7
    Views
    2,231

    Class names are per desktop. Classes themselves...

    Class names are per desktop. Classes themselves (except CS_GLOBALCLASS) are per process.
    If two programs independently register a class named "MainWindow", the ATOM returned by RegisterClass(Ex)...
  12. Replies
    7
    Views
    2,231

    Do it in DllMain. It's what the common controls...

    Do it in DllMain. It's what the common controls do. For the static library you'll have to have functions for clients to call, no way around it.
    To get the HMODULE of whatever module your static...
  13. The same way you do with CreateFile. Use the wide...

    The same way you do with CreateFile. Use the wide version and add the \\?\ prefix. Probably anyway, it's not like the C functions are anything but fancy wrappers.
  14. Replies
    2
    Views
    921

    Even if you get it working, running this code is...

    Even if you get it working, running this code is just an extraordinarily bad idea. Letting anybody who can connect to your computer, maybe even people who don't have an account, change your file...
  15. Replies
    10
    Views
    1,071

    And that's lesson number one of why you don't...

    And that's lesson number one of why you don't have global / static variables when locals and parameters would do just fine. CreateDialog doesn't return until, well, the dialog's been created....
  16. Replies
    5
    Views
    1,234

    Code here creates an 'open file' dialog box which...

    Code here creates an 'open file' dialog box which lets the user choose which file to open.

    This is what changes the current directory. You can add the OFN_NOCHANGEDIR flag for it to be restored to...
  17. It's not possible at all whether SDL, OpenGL,...

    It's not possible at all whether SDL, OpenGL, DirectX or Win32. Well, it is possible, you can draw on it, but any sort of interaction like a printf, cursor flashing, resizing the window etc with...
  18. Presumably because in the book, that's where the...

    Presumably because in the book, that's where the fork() is and s/he tried to make a copy of the program like it does.

    Windows doesn't have a useful equivalent to fork so perhaps the easiest way to...
  19. Usually you create a thread to do the long...

    Usually you create a thread to do the long running process, and leave the UI thread to, well, handle UI rather than vice-versa.

    As for threads, they're non-deterministic. They might start before...
  20. Replies
    4
    Views
    1,411

    This might help...

    This might help. As it mentions the structure has members for item, subitem and where the click was. That and/or LVM_SUBITEMHITTEST should get you somewhere.
  21. You need a variable that's specific to each...

    You need a variable that's specific to each thread, say by using malloc or on the stack of the first function the thread runs, and storing that pointer in the TLS. All you're doing now is storing the...
  22. You have to check for WM_CHAR and suppress the...

    You have to check for WM_CHAR and suppress the newline character(s) when they're sent. These message is generated by TranslateMessage, but the WndProc is called by DispatchMessage so assuming you...
  23. Replies
    1
    Views
    7,366

    You need any redist version that is equal or...

    You need any redist version that is equal or higher to the one requested in the manifests (here that's 9.0.21022.8). The magic of Side-by-Side assemblies (yes, there is some!) is that any app...
  24. Replies
    5
    Views
    2,755

    And since nobody mentioned it, getSmallFileLength...

    And since nobody mentioned it, getSmallFileLength has a couple of errors and a leak.



    HANDLE hFind;
    //Function only works for files below 2,147,483,647 bytes, limitation in function
    ...
  25. Replies
    1
    Views
    1,696

    From reading the first chapter and looking at the...

    From reading the first chapter and looking at the contents, it seems the author desperately wanted to write a gushing book about GNU tools, was shot down by the publisher, so he replaced a bit with...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4