Thanks, that got rid of the segfault. I'll try to look into some pointer arithmetic, too.
I coded that function with 2 for loops because I thought it was the easiest way to show exactly what was...
Type: Posts; User: TomServo1
Thanks, that got rid of the segfault. I'll try to look into some pointer arithmetic, too.
I coded that function with 2 for loops because I thought it was the easiest way to show exactly what was...
There aren't any other malloc calls than the one I showed. It's supposed to execute only once, with WM_CREATE. The value that's returned by AllocatePoints() goes into a global pointer, so it should...
GRID_DETAIL is 10, and GRID_POINT_SIZE is sizeof(struct GridPoints)
I get the segfault even if I don't cast malloc().
I doubt that
MainhWndInfo.rcClient.right / GRID_DETAIL
would have a...
Hi. I'm trying to write a Windows program that draws a grid on the screen using Dev-C++ 4.9.9.2. So, I made this struct to represent each grid coordinate:
struct GridPoints
{
SHORT x;...