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...
Type: Posts; User: kidburla
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...
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...
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...
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...
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...
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...
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....
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...
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...
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...
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;...
Like this:
//...
TClass c(2, 56);
//c is now constructed.
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...
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....
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;
}
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...
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."...
Thanks very much. I looked there, and found all the info I need.
Because you just told me:
but the example I just pasted in doesn't do that, for the reasons I outlined!
Which is it?
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...
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...
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"...
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;
......
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...
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...