Typically the memory manager keeps track of malloc'ed memory by storing the pointer in a table and when free or realloc, etc. are called, it looks...
Since you are calling free on a pointer that was NOT allocated by malloc, the behavior is undefined.
Please format that mess into something readable. Use code tags! See the forum BB code help: http://www.go4expert.com/misc.php?do=bbcode
So the problem is in the file save routine? Try opening your file in write mode instead of append mode (and use the "t" text mode if using...
My mind reading skills are a bit off today. Would you be so kind as to tell us what the compiler error was? Please format your code for...
Please use code tags: //code goes here You're looping starting at 1 instead of 0. Also, fgets will retrieve the string and the...
Use single quotes for a single character. Double quotes designate an array of characters that decays to a pointer to type char when used as...
Those are pointers to arrays of characters. the equal ('=') operator only works on POD (plain old data) types or classes that implement the equal...
What, specifically, is the problem?
Are you trying to create your CStatic more than once? Once it is created, you can change it's text by calling the SetWindowText() member function...
Without being able to read you mind it will be very difficult to help you. Please describe what the problem is, and post some of your code so we...
You are specifying a width parameter in the %d specifier ("%[width]d" scans a maximum of "width" characters). scanf stops scanning once that many...
What is "Label"? Where are lx and ly coming from? What is td.LandID?
Typically, you'd use memcpy(). It takes an additional parameter that tells it how many bytes to copy. //three unequal length buffers...
There is no "byte" type in C/C++ Some compilers and/or platform SDKs define or typedef it to "unsigned char" Casting your char array to...
Your mixing the CDC class with HDC handles and that won't work by forcing casts. Try replacing your first line with: HDC dc =...
I'm not sure what you are doing, but it might be a packing issue. By default, MS compilers line-up data in structure to an 8 byte boundary (makes...
CRgn is an MFC class wrapper for the HRGN handle as used by the API. You have to declare a CRgn object, then attach it to the HRGN handle:...
No easy way I can think of, but it sounds like a waste of time. There's a clock down there in the lower-right corner always showing the time no...
Are you using any kind of synchronization, or can just any thread read/write to messages[] at anytime?
Separate names with a comma.