Search:

Type: Posts; User: megafiddle

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds; generated 10 minute(s) ago.

  1. Replies
    6
    Views
    3,848

    There is a difference between the "brain in a...

    There is a difference between the "brain in a jar" scenario, which the move "The Matrix" loosely adapts, and a simulation of consciousness itself.

    The "brain in a jar" is at least possible in...
  2. Replies
    6
    Views
    3,965

    Ok, thanks. Interesting way af handling messages....

    Ok, thanks. Interesting way af handling messages.

    I use either of the first two examples. I keep the window procedure simple by passing off the message parameters to sub functions if further...
  3. Replies
    6
    Views
    3,965

    Sorry, that wasn't stated well. I was referring...

    Sorry, that wasn't stated well. I was referring to commands that I typically handle, and that should have been zero for the return value.



    That is more to my actual question.

    So if I have...
  4. Replies
    6
    Views
    3,965

    message handler return value

    Typically, a window procedure should return TRUE if a window message is handled.

    What constitutes handling? If my program sometimes takes no action in response to a window message (aside frome...
  5. Thread: OO in C

    by megafiddle
    Replies
    6
    Views
    3,765

    Ok, sorry. With the indentation present, I found...

    Ok, sorry. With the indentation present, I found it easy to follow, probably because I generally don't use braces except where necessary.

    Anyway, This may explain the lack of use of the argument...
  6. Thread: OO in C

    by megafiddle
    Replies
    6
    Views
    3,765

    What book format do you have? I have the pdf...

    What book format do you have?

    I have the pdf version of what I believe is the same work, and the code examples are very nicely formatted.

    Also, the code example you provided is missing some...
  7. Glad to help. You should be able to find example...

    Glad to help. You should be able to find example code for the common methods at least.

    They show up here in topics from time time:
    ...
  8. My programs tend to be math intensive. For the...

    My programs tend to be math intensive.

    For the greek symbols that are commonly used, I simply name the variables according to their english names:

    float theta;
    float omega;
    float delta;
    ...
  9. Replies
    9
    Views
    5,366

    Perhaps the remaining unanswered problems are...

    Perhaps the remaining unanswered problems are significantly more difficult. So far we have only really explained macro phenomena; when we get to the subatomic world, things start to make no sense;...
  10. Replies
    26
    Views
    17,510

    Tiny screens do present a challenge. Sounds like...

    Tiny screens do present a challenge. Sounds like a good solution.

    I think I will use tab controls if I run out of space. My "custom combobox" seems be working, so I may be able to fit everything,...
  11. Replies
    26
    Views
    17,510

    It is the size of the control in the dialog that...

    It is the size of the control in the dialog that is too large. And I have tried configuring them as small as possible.

    For some reason, the item text in the edit control portion of a combobox has...
  12. Replies
    26
    Views
    17,510

    I believe they are. I've never seen anything in...

    I believe they are. I've never seen anything in the documentation other than this:

    "If the WS_VISIBLE style is specified, CreateWindow sends the window all the messages required to activate and...
  13. Replies
    26
    Views
    17,510

    I also like to "roll my own", and am currently...

    I also like to "roll my own", and am currently working on a simple dropdown list control. I find the standard combobox with a dropdown list to be unnecessarily large for my use.

    The link you...
  14. Replies
    26
    Views
    17,510

    I don't think it's a matter of simply not...

    I don't think it's a matter of simply not responding. A 10 second "sleep", or a call to MessageBox() with a NULL owner window handle, will both block and prevent entry into the message loop if placed...
  15. Replies
    3
    Views
    7,243

    Ok, thanks. I think I will combine the ponters...

    Ok, thanks.

    I think I will combine the ponters to lists and the list size in an array of structs then.

    -
  16. Replies
    3
    Views
    7,243

    null terminated string lists

    Is it common practice, or accepted practice, to terminate a list of strings with a null string?

    For example,


    char *list[] = {"string A", "string B", "string C", ""};

    This would be for the...
  17. Did you try DeleteObject(imgBrush)? -

    Did you try DeleteObject(imgBrush)?

    -
  18. Replies
    27
    Views
    6,358

    Interesting projects! I have a couple I am...

    Interesting projects!

    I have a couple I am working on currently. One is a electrical circuit simulator, dedicated to the circuits in electric guitars and basses. All of the various circuit...
  19. Replies
    8
    Views
    3,198

    Glad it helped, but don't give me too much...

    Glad it helped, but don't give me too much credit; I'm sure I don't know any more about this stuff than you do!

    -
  20. Replies
    8
    Views
    3,198

    The concept of a RNG producing an infinite...

    The concept of a RNG producing an infinite sequence of numbers is interesting in itself.

    I wonder if there is any guarantee that such a RNG must eventually produce an infinite sequence of any...
  21. Thread: Need help

    by megafiddle
    Replies
    22
    Views
    11,921

    Some processors have a "decrement and branch on...

    Some processors have a "decrement and branch on not zero" instruction.
    On these, the assembly code could be more efficient if the loop counted down to zero.

    -
  22. Ok, I see. In this case, itemlist would be...

    Ok, I see.

    In this case, itemlist would be dedicated to the malloc'd memory.

    It would be a separate pointer that the requested list is assigned to:


    char *configlist[NCONFIGS] = {"Ser",...
  23. Thanks. Interesting info about the malloc()...

    Thanks. Interesting info about the malloc() overhead.

    Sounds like an array here is best then. These strings will be pretty short, maybe 8 or 10 characters including the null.

    Not sure what you...
  24. Replies
    7
    Views
    4,161

    I always enjoyed building my own things....

    I always enjoyed building my own things. Programming offers a means to do that in the software realm.

    So one thing I enjoy is the actual creation of a program (or application).

    I also enjoy...
  25. Ok, thanks. Yes, the fixed strings will remain...

    Ok, thanks.

    Yes, the fixed strings will remain untouched.

    Is there any advantage or disadvantage to using malloc() to create the buffer in a case like this?

    -
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4