Thread: compiling error
View Single Post
Old Nov 3rd, 2006, 8:02 AM   #47
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 852
Rep Power: 4 The Dark is on a distinguished road
Re-read post 36 again. You had it almost right before, but now you are wiping out the old size with the new size when you still need to use it.

Your code in post #39 was almost right - all you needed to do was assign the values of newrow and newcol to height and width after you have finished using them in the memcpy loop.
The Dark is offline   Reply With Quote