Search:

Type: Posts; User: kidburla

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Yes, I am trying to create the window at the...

    Yes, I am trying to create the window at the start of the code. The problem is that if I try to create a window at the start of the code (no matter what that window is), and in particular, before the...
  2. Creating a window causes a trackbar to stop working?

    I have a problem (which I have posted on these forums before, but that was a long time ago). Two completely unrelated parts of my program seem to be affecting each other. Simply opening a window...
  3. Replies
    12
    Views
    1,725

    I am not venting my frustration. I was merely...

    I am not venting my frustration. I was merely illustrating my reasoning for not posting my entire program, but only the sections which I considered relevant, with good reason I think. If you think...
  4. Replies
    12
    Views
    1,725

    Obviously I could post my entire 2500-line...

    Obviously I could post my entire 2500-line program here. However, I do not think that all the code which manages the other controls in this window, such as creating buttons and tabs, is relevant to...
  5. Replies
    12
    Views
    1,725

    The thing is though that the trackbar does work...

    The thing is though that the trackbar does work when the TMathFunction methods are called before window creation. Here is most of the relevant code (most of the file is missed out as it is irrelevant...
  6. Replies
    12
    Views
    1,725

    Okay, I wasn't going to post the actual bug in...

    Okay, I wasn't going to post the actual bug in here because it's kinda weird, but here goes anyway...

    My program draws fractals from actual mathematical functions. Because of this I have an...
  7. Replies
    12
    Views
    1,725

    Normally I would agree with you. But with this...

    Normally I would agree with you. But with this particular problem I feel like I have tried *everything* and like I said, I have worked on it for months. I literally can't find anything else to try....
  8. Replies
    12
    Views
    1,725

    Code debugging services

    Hi,

    Is there any company or companies in existence which will debug my C++ WINAPI code for money? I have this really annoying bug which I have been trying to track down for months, and I'm almost...
  9. Replies
    5
    Views
    2,137

    Assembly for graphics

    Hi,

    I am looking to learn assembly language, so that I can write faster graphics routines. I know some fairly basic stuff about architecture (for example, I know what a register is, what an ALU...
  10. Replies
    2
    Views
    1,409

    ListView ordering

    Hi,

    I have a multicolumn ListView control which I have created directly using the CreateWindowEx function. It has the LVS_REPORT style. I use LVM_INSERTITEM to add items and then LVM_SETITEMTEXT...
  11. Replies
    12
    Views
    1,691

    Okay. Now what about Destructors? Again I had an...

    Okay. Now what about Destructors? Again I had an idea to make sure that the function which created the object is the only one which can destroy it:



    class TClass {
    private:
    int CreationKey;...
  12. Replies
    12
    Views
    1,691

    Like this: //... TClass c(2, 56); ...

    Like this:



    //...

    TClass c(2, 56);

    //c is now constructed.
  13. Replies
    12
    Views
    1,691

    Protecting Constructors

    Hi,

    Is there any way to "protect" class constructors? So that a function which has a pointer to a class object can't just run the constructor again to mess up the class internals?

    I had the...
  14. Replies
    4
    Views
    5,222

    Hi, Why not just use a linked list of points...

    Hi,

    Why not just use a linked list of points in the graph? (or an STL vector). This is general, and is much more space-efficient than actually storing the value of each pixel in the graph itself....
  15. Replies
    4
    Views
    2,772

    Hmm. I don't really like const as much as...

    Hmm. I don't really like const as much as private, because you can just cast a const variable to modify it.



    fn(const int *p)
    {
    *((int *) p) = 1;
    }
  16. Replies
    4
    Views
    2,772

    Read-only class members

    Hi,

    Suppose I have a class TClass. Now, I need a variable x of type TSomeType within that class to be passed to functions. However, the functions cannot "know" what type the class is (in this...
  17. Replies
    3
    Views
    1,650

    WM_CREATE and BOOLs

    Got a couple more questions:

    a) The lParam of the WM_CREATE message is, according to Microsoft, "Pointer to a CREATESTRUCT structure that contains information about the window being created."...
  18. Thread: DefWindowProc

    by kidburla
    Replies
    12
    Views
    7,857

    Thanks very much. I looked there, and found all...

    Thanks very much. I looked there, and found all the info I need.
  19. Thread: DefWindowProc

    by kidburla
    Replies
    12
    Views
    7,857

    Because you just told me: but the example...

    Because you just told me:



    but the example I just pasted in doesn't do that, for the reasons I outlined!




    Which is it?
  20. Thread: DefWindowProc

    by kidburla
    Replies
    12
    Views
    7,857

    Microsoft's use of DefWindowProc

    Hi,

    I am just looking at Microsoft's Window Procedure example from

    Platform SDK
    + User Interface Services
    + Windows User Interface
    + Windowing
    + Window Procedures
    + Window Procedures...
  21. Thread: DefWindowProc

    by kidburla
    Replies
    12
    Views
    7,857

    DefWindowProc

    Hi,

    What does DefWindowProc actually do? I mean, is it just a function which returns 0 for WM_QUIT and 1 for all other messages, or does it actually do some processing?

    Is there somewhere where...
  22. Replies
    5
    Views
    1,515

    Yeah thanks. I did actually search the board...

    Yeah thanks. I did actually search the board before I posted, but after reading your message I searched it again and found a couple of topics. Now I have a good window procedure running with "this"...
  23. Replies
    5
    Views
    1,515

    WNDPROC conversion

    How do you set a class member function to be a WNDPROC? I am creating my own custom class to represent a window, and I have the following in my constructor:



    WNDCLASSEX CanvasClass;
    ......
  24. Replies
    13
    Views
    2,515

    Thanks, that's very helpful. Presumably it...

    Thanks, that's very helpful.

    Presumably it would be possible to write a "safe" strcat, which creates a new pointer, mallocs it to the correct size (sum of the strlens, plus one) then strcpys the...
  25. Replies
    13
    Views
    2,515

    Weird string problem

    Hi,

    I have been programming in C for about 6 months now and thought I had got pretty used to it but I came across a weird problem which I don't really understand. I wrote a small program to...
Results 1 to 25 of 43
Page 1 of 2 1 2