Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / error on my project

Author
Message
edy619
15
Years of Service
User Offline
Joined: 6th Oct 2009
Location:
Posted: 6th Oct 2009 22:49
ok im new at this so i keep getting this error that says unable to start program the system cannot find the file specified can someone help this is my code

//Edy's Handout #1.4--Sort of.....

#include "DarkGDK.h"
#include <string.h>

void countDown();
void drawHorizonal(int column, int row, int columnLength);
void drawVertical(int column, int row, int rowLength);



void DarkGDK()
{
char userName[101];
char welcome[101] = "Thanks for joining us ";
//LOAD FIREWORKS WAV FILE
dbLoadSound("Fireworks.wav", 1);

//INSERTING FIREWORKS PICTURE
dbLoadImage ("FireworksNiagara.JPEG", 1);
dbPasteImage( 1, 200, 10, 1 );

//countdown
countDown();

dbCLS();

//Prompt user for keyboard input . . .
dbPrint ("Please Enter your first name: ");
strcpy(userName, dbInput() );
dbPrint(strcat(welcome, userName));
dbPrint( strcat(userName, ", please enter your departure date of year, month and day in the \nstardate format of yyyymmdd, like 23450214: "));
dbWaitKey();








return;

}


















void drawHorizonal(int column, int row, int columnLength) //this is the code for the horizontal lines u can change the names so it wont be the same
{
//////////////////////////////////////////////////
// VARIABLE
//////////////////////////////////////////////////
int column_2 = column + columnLength ;
//////////////////////////////////////////////////

dbLine(column, row, column_2, row);

return;
}


void drawVertical(int column, int row, int rowLength)
{
//////////////////////////////////////////////////
// VARIABLE
//////////////////////////////////////////////////
int row_2 = row + rowLength ;
//////////////////////////////////////////////////

dbLine(column, row, column, row_2);

return;
}




///////////////////this is will be ur coundown function but remember you also have to a function for each number....so instead of ur lines of code write a function of the number
void countDown()
{




for ( int x = 1; x == 1; x++ )

{

//THREE

copy code for #3

dbWait(1000);
dbCLS();

//TWO

copy code for #2

dbWait(1000);
dbCLS();

//ONE

copy code for #1

dbWait(1000);
dbCLS();

//ZERO

copy code for #0

dbWait(1000);
dbPlaySound(1);


}

dbWaitKey();

return;
}
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 7th Oct 2009 00:56
can you post what file wasn't found?

Your bedtime story is scaring everyone
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 7th Oct 2009 07:50
Its probably a good idea to use the code tags to put large clumps of source into like this :



You use the code tags by clicking the "code" button on the Post Forum Message panel. Pasting/typing you code, and then clicking the "code" button again. You should see the source you are posting surrounded by the word "code" inside square brackets.. kind of like : "[" code "]" "[" "/" code "]" ... obviously without the quotes though lol.

The message will be either DarkGDK.h or string.h that isnt found. More than likely DarkGDK.h, you will get taht error when your installation hasnt completed correctly. It will more than likely be looking for the files in the wrong place. Have a look at the forums sticky about installation, it has solutions to most problems that can happen during installs.

If it ain't broke.... DONT FIX IT !!!

Login to post a reply

Server time is: 2024-11-20 13:30:58
Your offset time is: 2024-11-20 13:30:58