I made 2 years ago a custom control; it was a button, with extendend functionalities, and hexagonally shaped.
I made a CWnd derived class, and used it as a control, analazing the mouse events and...
I start by apologizing for my newbyosity in this field of c++, that is audio tracks. I understand, however, the principles behind sampling and sound recording issues in a computer.
...
I understand. I didn't know SetCapture() works only if mouse button is pressed. I thing in Dialog boxes it works anyway, but CView, being a different, more complex "window structure", works...
I am developing a small mouse movement detector. It is an SDI app that does some stuff only based on mouse movement, regardless form its position or button flag.
You could save a rectangular bmp which is that occupied by the clock... When you need to refresh it, you can erase the clock background with the original image partial bitmap (overriding the CStatic...
Of course I am not able, nor I intend, to beat standard containers. Anyway, the struct is just one part of the container I had in the app. The skeleton pointer is a multiple layer list, not just the...
Interesting... But for this application I'm looking for direct access and control over pointers, without intermediates. I'll take what you say in account for another app I'm writing, however, where...
Doesn't matter... Feels like I'll have to rewrite some code: not quite sure is what I shown the source of the leaks. Thank anyway, the help was really precious.
I solved many issues, but still remain a problem; I got memory leaks for each object I allocate with new durinig the program. Even when destructor is called. So, I found out how to call destructors...
Actually, to be very sure, I inserted in the destructor code an AfxMessageBox("Destructing") troubleshooting message... It is not shown, so I supposed destructors weren't called.
Moreover, if I...
I defined PREMATURE_EXIT as -55. The invoker of the CDialog is a CWiew class.
Now, the CDialog has some children CWnd that has new allocated memory too. I wrote this:
I'm writing a Win application. In a dialog window the user has to insert some data. If these data refers to a bad, corrupted or mismatching file the application needs to close (after propting the...
I built a pointer based class, that makes a lot of use of dynamic memory allocation with new. So I equipped the class with an appropriate destructor, that traces back all allocated objects and...