Sorry, I can't do much with that code. There are several classes that I have no idea what they do and I don't know how or where you are calling...
You'll have to use multiple breaks.
The "break" keyword will break you out of the loop: while(1){ printf("Stuck in the loop\n"); if(somecondition){ break;...
Just because it works doesn't mean it's right. When you smash your stack, you invoke undefined behavior. The program may seem to work fine, but...
No.
In debug mode, the compiler allocates extra memory on each end of the stack and fills it with a specific value (0xCD I believe). After the...
Oh, I see that the question was in the title. Sorry. You can do this most easily by declaring tAdd and tSubtract as "static" then they have no...
Did you have a question?
Between drawing each hexagon, call SelectClipRgn(NULL) to reset the clipping region, then call it again with the new hex region.
This paints a bitmap defined in resources as IDB_BITMAP1 into a triangular clipping region on the screen: CPaintDC dc(this); POINT...
You're probably using a UNICODE build so CString is a CStringW and its Format member expects wide string arguments (wchar_t and not char). You an...
Re: errorC2664:'StartServiceW':cannot convert paramter from 'const char **' to 'LPCWS You're using a UNICODE build. You need wide strings...
For solid color, use CDC::FloodFill(). For an image, you'll have to set a clipping region to the shape of your hexagon and bitblt the image.
Separate names with a comma.