Try the following:
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK()
{
DWORD blue = dbRGB(255,0,0);
DWORD black = dbRGB(255,255,255);
// Variables for the center points.
int x = 319, y = 239,radius = 50;
// Draw concentric circles.
dbInk(blue,black);
while (LoopGDK()){
if (dbEscapeKey() == 1) break;
dbCLS (black);
dbCircle(x, y,radius);
dbSync();
}
// Wait for the user to press a key.
dbWaitKey();
}
And, for the record,
DWORD black = dbRGB (0, 0, 0);
DWORD blue = dbRGB (0, 0, 255);
As a matter of C/C++ style, it wasn't necessary for purposes of this example to store your colors, center co-ordinates or radius as variables before passing them to dbCircle function. You could have used literals.
Lilith, Night Butterfly
I'm not a programmer but I play one in the office