Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 45
Search took 0.02 seconds.
Search: Posts Made By: gj15987
Forum: C Jun 20th, 2008, 5:36 AM
Replies: 6
Views: 476
Posted By gj15987
Re: Correct use of malloc?

I have now edited my program so that it uses a buffer of 5 chars, and when the buffer gets full, it malloc/reallocs memory to store the buffer so far and then starts filling the buffer from the start...
Forum: C Jun 19th, 2008, 2:50 AM
Replies: 6
Views: 476
Posted By gj15987
Re: Correct use of malloc?

Thank you The Dark.

For anyone else who may have run into similar problems in the past, I found the following method is good for checking that enough memory has been allocated. Every time you malloc...
Forum: C Jun 18th, 2008, 8:29 PM
Replies: 6
Views: 476
Posted By gj15987
Correct use of malloc?

The exact uses of malloc and realloc are confusing me a bit. I know they need to be used when you don't know how much space you're going to need, e.g. storing a user entered string, but I'm still not...
Forum: C Jun 17th, 2008, 5:45 AM
Replies: 6
Views: 386
Posted By gj15987
Re: Converting Temperatures

Yes! Using 9.0 and 5.0 works!

Thanks a lot!
Forum: C Jun 17th, 2008, 4:45 AM
Replies: 6
Views: 386
Posted By gj15987
Converting Temperatures

I'm using the following code to convert from Celcius to Fahrenheit but for some reason the actual conversion wont work and I can't work out why. The key lines are lines 13 and 16.

Basically, the...
Forum: Project Ideas Apr 8th, 2008, 10:39 AM
Replies: 1
Views: 343
Posted By gj15987
Sound Recognition

Hi. Does anyone know a language that I can use to read in a sound and figure out what note is being played? E.g. like a guitar tuner.
I think the way this is done is by measuring the frequency of the...
Forum: HTML / XHTML / CSS Jun 20th, 2007, 11:39 AM
Replies: 2
Views: 208
Posted By gj15987
Floating div make parent grow?

Hi. I have this website: http://www.foxcalluk.co.uk/Redesign/page.html and I would like the div for the menu on the left to always be the same height as its parents div.

Using "normal" html and css,...
Forum: HTML / XHTML / CSS Feb 8th, 2007, 1:34 PM
Replies: 2
Views: 206
Posted By gj15987
HTML Tables and IE

EDIT: Don't I feel stupid...I'd missed some >s off the end of some tags...disregard this post! Sorry!

Hi. I have the following page: http://herp.awardspace.com/redesign/page.php?page=species

The...
Forum: Existing Project Development Jan 18th, 2007, 12:25 AM
Replies: 5
Views: 157
Posted By gj15987
Thank you for everyone's help. I took out the...

Thank you for everyone's help.

I took out the category field in the animal table. Created a link table category_animal(category id, animal id). And when adding a new animal it asks the user for its...
Forum: Existing Project Development Jan 17th, 2007, 4:22 PM
Replies: 5
Views: 157
Posted By gj15987
Ah, very good idea! Thank you very much! So if I...

Ah, very good idea! Thank you very much!

So if I do it that way...what would be the best way to add the animal in all the categories?

Eg. If i add a royal python in pythons, code would look up...
Forum: Existing Project Development Jan 17th, 2007, 1:17 PM
Replies: 5
Views: 157
Posted By gj15987
Categorizing

I'm in the process of making a website in php on Reptiles and Amphibians. Just using free hosting while I'm making it. Address is http://herp.awardspace.com.

At the moment, I can add animals to the...
Forum: Other Programming Languages Nov 8th, 2005, 4:31 AM
Replies: 1
Views: 184
Posted By gj15987
Active windows?

Hi,

What is it called when you have a window and you cannot access any other windows until you close that one? Like when you have a dialog and if you click outsdie it it makes the noise and the...
Forum: Delphi Nov 4th, 2005, 7:42 AM
Replies: 1
Views: 345
Posted By gj15987
Sokay! I sussed it thanks! lol

Sokay! I sussed it thanks! lol
Forum: Delphi Nov 3rd, 2005, 6:23 PM
Replies: 1
Views: 345
Posted By gj15987
Linking 2 tables

Hi,

This is hard to explain so i'll give all the background information.

I'm making a system that can be used by a reptile shop to keep track of the animals etc. Each animal has a feeding interval...
Forum: Delphi Oct 27th, 2005, 4:57 PM
Replies: 7
Views: 569
Posted By gj15987
Yes/ No Dialog

Hi, how do I make a basic yes/no dialog that comes up and confirms that I wanted to actually press the button I did?

Thanks.
Forum: C++ Aug 20th, 2005, 12:43 PM
Replies: 2
Views: 200
Posted By gj15987
Visual forms in C++?

Hi, So I first started learning programming at college. First learning pascal and making dos programs, and the moving onto delphi.

So I've decided to teach myself C++ and so far I've basically...
Forum: Delphi Aug 20th, 2005, 7:27 AM
Replies: 12
Views: 546
Posted By gj15987
Tried and tested and it works perfectly! I had to...

Tried and tested and it works perfectly! I had to add a shift_ID field to the shift table so that the sql didn't update every field when clocking out.

Really though...Ooble, are you like a child...
Forum: Delphi Aug 20th, 2005, 6:06 AM
Replies: 12
Views: 546
Posted By gj15987
WOOOHOOO!!! Ok, this works! :D I've tried all...

WOOOHOOO!!! Ok, this works! :D I've tried all possible cases and it works! :D

I took your idea into acount Ooble, and had a field called Active in the shift table. When no active shift is found for...
Forum: Delphi Aug 19th, 2005, 6:16 PM
Replies: 12
Views: 546
Posted By gj15987
Sokay...I have yet again recided to think of...

Sokay...I have yet again recided to think of another way to clock in without sorting them and I think I've found a way that's simple and that works. I'll post it when I've tested it n stuff.
Forum: Delphi Aug 19th, 2005, 4:41 PM
Replies: 12
Views: 546
Posted By gj15987
Hmmm...I'm using sql to update and add records on...

Hmmm...I'm using sql to update and add records on the clock in thingy. But to access the table data I'm placing the delphi TTable things on the page and then using things like table1.open,...
Forum: Delphi Aug 19th, 2005, 3:36 PM
Replies: 12
Views: 546
Posted By gj15987
Index in a table

How do I create an index to sort a table?! I have created an index using Database desktop, which is what I used to create the tables. However when I add a new record it then tells me that the index...
Forum: Existing Project Development Aug 19th, 2005, 3:33 PM
Replies: 39
Views: 636
Posted By gj15987
Sorry for the double post. It wont let me edit my...

Sorry for the double post. It wont let me edit my last post.

I'm going over to the delphi bit of the forums now because I need to know how to create an index.
Forum: Existing Project Development Aug 19th, 2005, 3:02 PM
Replies: 39
Views: 636
Posted By gj15987
Hehe, no really i've learned alot and I don't...

Hehe, no really i've learned alot and I don't think I'll give up actually. I was just getting too frustrated.
Forum: Existing Project Development Aug 19th, 2005, 2:13 PM
Replies: 39
Views: 636
Posted By gj15987
OH. MY. GOD. This is pissing me off too much...

OH. MY. GOD. This is pissing me off too much now.

It works with 1 employee and 1 shift. But for some reason when I add another employee it goes straight to clocking them in even if they should be...
Forum: Existing Project Development Aug 19th, 2005, 1:12 PM
Replies: 39
Views: 636
Posted By gj15987
Those output statements really work! thanks! :D...

Those output statements really work! thanks! :D i've worked out where the errors are and I have corrected them.

I now have a delphi question, Ooble? You seem to know delphi.

I need the correct code...
Forum: Existing Project Development Aug 19th, 2005, 12:00 PM
Replies: 39
Views: 636
Posted By gj15987
Ok, you've really baffled me! I'm sorry to sound...

Ok, you've really baffled me! I'm sorry to sound so dumb! Output statements?! you mean basically output some text sayin what it should do? And what am I not saying in my posts?

Can you actually see...
Forum: Existing Project Development Aug 19th, 2005, 11:09 AM
Replies: 39
Views: 636
Posted By gj15987
Yes I was just showing that the outer if...

Yes I was just showing that the outer if works.

I've followed it through many times and it seems fine to me, yet when i enter a valid employee ID it somehow freezes, and i can't figure out where it...
Forum: Existing Project Development Aug 19th, 2005, 9:22 AM
Replies: 39
Views: 636
Posted By gj15987
Snakes shit other snakes...seriously...mine shits...

Snakes shit other snakes...seriously...mine shits these little white balls but every month or so it shits this huge long crap!

Onto the topic though, lol...I'm pulling my hair out now! I've thought...
Forum: Existing Project Development Aug 19th, 2005, 8:01 AM
Replies: 39
Views: 636
Posted By gj15987
HAHA! :D yeah ok i'll do the whole write down...

HAHA! :D yeah ok i'll do the whole write down pseudo code thingy...and I'll let you know if I figure it out.
Forum: Existing Project Development Aug 19th, 2005, 7:54 AM
Replies: 39
Views: 636
Posted By gj15987
Sokay, if you read on i've redesigned it so its...

Sokay, if you read on i've redesigned it so its not done in specific shifts but you can clock in and clock out as many times as you like. Its just this damn loop i need to get around.
Forum: Existing Project Development Aug 19th, 2005, 7:38 AM
Replies: 39
Views: 636
Posted By gj15987
Ok, figured this debugger out, seems its looping...

Ok, figured this debugger out, seems its looping around the outer loop. I can't see why...



:eek: are you some sort of child prodigy?!?!?
Forum: Existing Project Development Aug 19th, 2005, 7:12 AM
Replies: 39
Views: 636
Posted By gj15987
I use Delphi 6. I'm not sure of all the features,...

I use Delphi 6. I'm not sure of all the features, its just what they taught us at college (i'm learning c++ on the side), so I think there is a debugger in there, but i'm not sure how to use it.

and...
Forum: Existing Project Development Aug 19th, 2005, 6:16 AM
Replies: 39
Views: 636
Posted By gj15987
Ok now I think this needs to be moved to the...

Ok now I think this needs to be moved to the delphi forum.

I have this code

procedure Tfrm_clock_In.btn_enterClick(Sender: TObject);
var
Today:TDateTime;
...
Forum: Existing Project Development Aug 18th, 2005, 7:39 PM
Replies: 39
Views: 636
Posted By gj15987
Erm...yeah thats me. I'm scared, you say it like...

Erm...yeah thats me. I'm scared, you say it like you know me...? lol This is quickly becoming off topic, sowwi!
Forum: Existing Project Development Aug 18th, 2005, 7:04 PM
Replies: 39
Views: 636
Posted By gj15987
Thats a good idea. But I'll have to write myself...

Thats a good idea. But I'll have to write myself a specification. So i'm doing this as the client, and as the coder lol. So in the spec i might as well just write "Employees can work from 9am to...
Forum: Existing Project Development Aug 18th, 2005, 3:24 PM
Replies: 39
Views: 636
Posted By gj15987
THANKS! Aaahh! I love this place! Looks like I'm...

THANKS!

Aaahh! I love this place! Looks like I'm gonna become a regular here! I know how frustrating it is when you don't know how to do something and you wana be shown! So I'll try answer some easy...
Forum: Existing Project Development Aug 18th, 2005, 3:01 PM
Replies: 39
Views: 636
Posted By gj15987
It was a project in general question, and then...

It was a project in general question, and then became a delphi topic, cus thats the language i'm using.
Forum: Existing Project Development Aug 18th, 2005, 2:42 PM
Replies: 39
Views: 636
Posted By gj15987
Ah I can't believe I've been so dumb! I've...

Ah I can't believe I've been so dumb! I've figured out the best way to do it is to have a table:

Tbl_shift(Shift_ID, Date_, Time_In, Time_Out, Time_Worked, Employee_ID)

Time worked will be...
Forum: Existing Project Development Aug 18th, 2005, 1:42 PM
Replies: 39
Views: 636
Posted By gj15987
Ugh, i think I'm going to be beyond help. I think...

Ugh, i think I'm going to be beyond help. I think its the language. I don't have any problem with adding stuff to databases using sql. I don't understand how i make a shift "active" and how to make...
Forum: Existing Project Development Aug 18th, 2005, 1:17 PM
Replies: 39
Views: 636
Posted By gj15987
I see what you mean. Exactly how i can manage to...

I see what you mean. Exactly how i can manage to do that is another problem! I've only just started A level computing and i'm gettin a head start on next year so i don't have that much...
Showing results 1 to 40 of 45

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:47 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC