Search:

Type: Posts; User: adeyblue

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. If you go to a shop that only sells one type of...

    If you go to a shop that only sells one type of item (CreateDXGIFatory), the shop keeper can be pretty certain what sort of item you want, otherwise why would you go there?
    On the other hand, if you...
  2. What you need to do OP is save the all the...

    What you need to do OP is save the all the handles returned by the CreateWindows, then when switching pages, ShowWindow(handle, SW_HIDE) all the handles for the to-be-hidden page and...
  3. Replies
    3
    Views
    1,578

    I can't remember if this is listboxes or...

    I can't remember if this is listboxes or comboboxes (or maybe both) but the height you set for the control in the resource file/createwindow includes the drop down height and thus, indirectly sets...
  4. Replies
    3
    Views
    1,840

    The Linux/posix equivalent of TLSAlloc and...

    The Linux/posix equivalent of TLSAlloc and friends are pthread_key_create and pthread_get/setspecific
  5. Replies
    8
    Views
    2,285

    I'm pretty sure there's a difference between...

    I'm pretty sure there's a difference between PostMessage(WM_QUIT) and PostQuitMessage(), in that one is likely to be ignored and one will end the message loop.

    Since you can't PostQuitMessage to a...
  6. Might be a good idea to figure out where you're...

    Might be a good idea to figure out where you're corrupting memory and fix it before you run out of pointless nonsense you can use to keep your app running.
  7. Thread: Bitset in C

    by adeyblue
    Replies
    3
    Views
    3,150

    I know right, can you believe the cheek of the...

    I know right, can you believe the cheek of the OP? He probably watches TV shows in colour as well.
  8. Replies
    1
    Views
    12,748

    As some closure: There no automation of this...

    As some closure:

    There no automation of this
    LD's plugin system is basically useless for anything other than the one purpose it was invented for, so you can't write a plugin to do it
    Linker...
  9. Replies
    1
    Views
    12,748

    MinGW & IMAGE_LOAD_CONFIG_DIRECTORY

    Anybody know how/if you can get MinGW GCC to add one of these things to the exe header?

    In Visual Studio you do this



    extern IMAGE_LOAD_CONFIG_DIRECTORY _load_config_used = {
    0x24, //...
  10. Replies
    11
    Views
    4,541

    It isn't created there because standard user...

    It isn't created there because standard user accounts aren't allowed to create files in the root of the C:\ drive.
    But as your app isn't manifested to say it understands this behaviour, it doesn't...
  11. Replies
    2
    Views
    5,614

    Remove the GetDC and replace the TextOut and...

    Remove the GetDC and replace the TextOut and SendMessage in WM_CHAR with InvalidateRect(hWnd, NULL, TRUE). That'll properly generate a WM_PAINT to redraw the window.

    Also


    wmId = ...
  12. Replies
    19
    Views
    10,032

    Here's my entry: puts("There are 2357034...

    Here's my entry:



    puts("There are 2357034 consonants and 1433891 vowels in the Complete Works of William Shakespeare");


    My optimisation was working smarter, not harder and leveraging the...
  13. They got a working answer days ago from the...

    They got a working answer days ago from the FreeBasic forum of all places
    disabeling the minimize and maximize box - freebasic.net
  14. Replies
    24
    Views
    15,983

    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...
  15. Replies
    6
    Views
    5,123

    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.
  16. Replies
    3
    Views
    3,887

    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,...
  17. Replies
    5
    Views
    7,387

    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.
  18. Thread: Spankings

    by adeyblue
    Replies
    12
    Views
    2,875

    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...
  19. 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...
  20. 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...
  21. 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.
  22. 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
  23. Replies
    3
    Views
    936

    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...
  24. Replies
    7
    Views
    7,215

    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)...
  25. Replies
    7
    Views
    7,215

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