Right now I'm working on a project to try to port all of the code used in Johnathan S. Harbour's DarkBASIC Pro book, and make it DarkGDK compatible code.
I'm having a little trouble trying to concat some char* variables.
Here is the code:
// Return Value
// page 88
#include "DarkGDK.h"
int RandomColor();
void SetColor(int Forcolor);
void DarkGDK()
{
dbSyncOn();
dbSyncRate(60);
int color;
char* buffer;
for (int n = 1; n < 20; ++n)
{
color = RandomColor();
SetColor(color);
sprintf(buffer, "%sLine %i - Three cheers for the conquering heros!", dbSpaces(n), n);
dbPrint(buffer);
dbSync();
}
dbWaitKey();
return;
}
int RandomColor()
{
int color = dbRGB(dbRND(255), dbRND(255), dbRND(255));
return color;
}
void SetColor(int Forecolor)
{
dbInk(Forecolor, 0);
}
I'm getting this error upon building:
1>LINK : fatal error LNK1561: entry point must be defined
http://twewy-fan.com/ <-- The first ever fansite for "The World Ends With You"