AOA AOA AOA Folding For Team 45 AOA Files Home Front Page Become an AOA Subscriber! UserCP Calendar Memberlist FAQ Search Forum Home


Go Back   AOA > Software > Programming and Assembly Language

Programming and Assembly Language Please read this Topic's rules!!

Reply
 
LinkBack Thread Tools Rate Thread
  #1 (permalink)  
Old 21st July, 2005, 11:46 PM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

Program im making in Delphi.

What do you guys think of the look of this?

The screenshot was taken from desktop using good old print screen key and i just cut most of the desktop out to save on file size. It's an Instant Messaging program i building for LAN for me and my brother(mainly so i have something to do).

The left window is 25% transparent so you can see the desktop a little i thought that this looked pretty cool lol also my menu's are custom drawn so it blends in instead of plain old gray.
Attached Thumbnails
Program im making in Delphi.-lanimss.png  
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 26th July, 2005, 09:24 AM
Got EpOx's Avatar
Team 45 Folder
 
Join Date: April 2005
Location: Exmouth, UK
Posts: 2,569
Send a message via MSN to Got EpOx Send a message via Skype™ to Got EpOx

Looks great, keep up the good work.
__________________
Intel Core 2 Duo T5500 1.66Ghz
1GB PC2-5300 667Mhz
Matsh1ta DVD/RW Drive
232GB Western Digital 'My Book' External HDD USB 2.0
80GB Hitachi SATA HDD
Onboard Audio
Intel GMA 950 Onboard Video
Want to make a difference without leaving your chair?, then join the AOA folding team today!
AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 26th July, 2005, 06:01 PM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

Thanks Been working on it like crazy got nothing better to do
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 27th July, 2005, 11:51 AM
Got EpOx's Avatar
Team 45 Folder
 
Join Date: April 2005
Location: Exmouth, UK
Posts: 2,569
Send a message via MSN to Got EpOx Send a message via Skype™ to Got EpOx

Same here, i use visual basic but i might take a look at Delphi sometime in the near future, looks like a good programming language.
__________________
Intel Core 2 Duo T5500 1.66Ghz
1GB PC2-5300 667Mhz
Matsh1ta DVD/RW Drive
232GB Western Digital 'My Book' External HDD USB 2.0
80GB Hitachi SATA HDD
Onboard Audio
Intel GMA 950 Onboard Video
Want to make a difference without leaving your chair?, then join the AOA folding team today!
AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 27th July, 2005, 06:28 PM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

Well yes in my opinion it does have a vast number of advantages over visual basic and seen as i came from around 1 year of experience from using visual basic over to delphi id say i know a little bit about it.

A few thing's i'll say you might find usefull and this first one is the main reason i seeked another language in the first place.

1. Delphi allows yout to compile stand alone Win32 executables or use a runtime package similar to visual basic's(not as widespread of course).

2. Win32 API's need not be declared before use though some like for the shell do require an addition to the Uses clause at the top of your program(ShellAPI) so it's alot easier then defining exact api's and params.

3. Something i found out last night, those still programming for Win32 who are most likely to go to the .NET platform will find it much easier with delphi due to borland's very hard work on newer version of delphi supporting both win32 and .net. Basically only if you don't use win32 specific functions in your app or some certain ones you can compile existing code straight to .net with next to no trouble at all. Visual basic and other developer's however will most likely have to start their applications from scratch.

__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 28th July, 2005, 06:11 AM
Got EpOx's Avatar
Team 45 Folder
 
Join Date: April 2005
Location: Exmouth, UK
Posts: 2,569
Send a message via MSN to Got EpOx Send a message via Skype™ to Got EpOx

Thanks for the info Chesso.
__________________
Intel Core 2 Duo T5500 1.66Ghz
1GB PC2-5300 667Mhz
Matsh1ta DVD/RW Drive
232GB Western Digital 'My Book' External HDD USB 2.0
80GB Hitachi SATA HDD
Onboard Audio
Intel GMA 950 Onboard Video
Want to make a difference without leaving your chair?, then join the AOA folding team today!
AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 28th July, 2005, 07:22 AM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

No problem

Hey don't suppose your'e good with debugging if then, else if, else statements?

I decided to add some commands triggered by // similar to mIRC just for quick access to change some settings or have a little fun but my command processing function is very if then etc nested to the max.

The problem is i can't add an additional Else If to it i get a compile error saying that it is expecting . which means end. that is the end of the unit(code). Iv'e gone through it many times and even asked for help on delphipages forum but no one can figure it out.

I managed to correct some problems but they didn't seem to affect anything....... Seen as your a VB developer i'll explain basiclly how conditionals work in delphi.

Code:
If (Condition) Then
Begin
//code two forward slashes at beggining means a comment { and } are used
//for multiple line comments or several lines beggining with two forward
//slashes.
End;
The semi colon ends the statement so if you were to add an else to this that semi colon would be removed and added to the end of the else statement because obviously you don't want it to end the statement half way.

Example:
Code:
If (Condition) Then
Begin
//code.
End    //Notice there isn't any semi colon here now.
Else
Begin
//code.
End;
Anyway i think iv'e rambled on enough pretty much im just asking if you have any general suggestions for troubleshooting problems with huge nested if then, else if, else statements. There's your first delphi tutorial on conditionals lol
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 28th July, 2005, 07:55 AM
Got EpOx's Avatar
Team 45 Folder
 
Join Date: April 2005
Location: Exmouth, UK
Posts: 2,569
Send a message via MSN to Got EpOx Send a message via Skype™ to Got EpOx

I haven't really got that much experience with VB, but i'm learning at the moment. One thing i have spotted is that it might be a statement nested inside the if thats wrong, check with some Delphi tutorial websites or something. Delphi developers forums are always a good place to start.
__________________
Intel Core 2 Duo T5500 1.66Ghz
1GB PC2-5300 667Mhz
Matsh1ta DVD/RW Drive
232GB Western Digital 'My Book' External HDD USB 2.0
80GB Hitachi SATA HDD
Onboard Audio
Intel GMA 950 Onboard Video
Want to make a difference without leaving your chair?, then join the AOA folding team today!
AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 28th July, 2005, 08:06 AM
beno-the-baron's Avatar
Member
 
Join Date: July 2005
Posts: 9

I've done some c++ and a little vb and it sounds as if you need to read your work through carefully until you see some simple mistakes. If you're unsure about a peice of code you used double check it with a manual or something. I know this is obvious but with bugs its the obvious things wich are the easiest to forget.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 28th July, 2005, 08:10 AM
Got EpOx's Avatar
Team 45 Folder
 
Join Date: April 2005
Location: Exmouth, UK
Posts: 2,569
Send a message via MSN to Got EpOx Send a message via Skype™ to Got EpOx

Chesso what kind of system do you have?

Mine is the following:

Code:
Celeron D 2.4ghz Skt478
EPoX EP-4SGM8I
512mb Twinmos 200mhz PC3200 RAM
20GB Quantum Fireball 
Standard DVD-ROM Drive
__________________
Intel Core 2 Duo T5500 1.66Ghz
1GB PC2-5300 667Mhz
Matsh1ta DVD/RW Drive
232GB Western Digital 'My Book' External HDD USB 2.0
80GB Hitachi SATA HDD
Onboard Audio
Intel GMA 950 Onboard Video
Want to make a difference without leaving your chair?, then join the AOA folding team today!
AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 28th July, 2005, 08:11 AM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

Yeah im thinking it's fairly obvious but the compiler shouldn't allow such a mistake to get through unoticed seen as it compiles without the additional else if statement or if i just add additional If statement.

I corrected a few things like statement terminate(semi colon) in places that seem it should have been but it made no difference or atleast not to the compiler heh.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 28th July, 2005, 08:15 AM
Got EpOx's Avatar
Team 45 Folder
 
Join Date: April 2005
Location: Exmouth, UK
Posts: 2,569
Send a message via MSN to Got EpOx Send a message via Skype™ to Got EpOx

That's what compilers are for, checks your work and then executes it. In this case i don't understand why it let it through, as i mentioned earlier post your problem on a delphi forum.
__________________
Intel Core 2 Duo T5500 1.66Ghz
1GB PC2-5300 667Mhz
Matsh1ta DVD/RW Drive
232GB Western Digital 'My Book' External HDD USB 2.0
80GB Hitachi SATA HDD
Onboard Audio
Intel GMA 950 Onboard Video
Want to make a difference without leaving your chair?, then join the AOA folding team today!
AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 28th July, 2005, 08:18 AM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

Code:
Celeron D 2.4ghz(478 Socket).
Asus P4S800-MX 478 all in one board.
768mb Kingston Value ram.(512 + 256).
256mb GF 5500.
20gig Fireball AS20.5.
2x CD-Rom 52x32x52, 52x24x52.
Some external dvd thing.....
Yes iv'e posted on delphi forums and no one can figure it out but they are very passionate about it not being a bug in delphi lol. That's why im so desperate to ask anyone who might have an understanding of the problem.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 28th July, 2005, 08:20 AM
Got EpOx's Avatar
Team 45 Folder
 
Join Date: April 2005
Location: Exmouth, UK
Posts: 2,569
Send a message via MSN to Got EpOx Send a message via Skype™ to Got EpOx

Ok Chesso give me and Ben a while to think about this.
__________________
Intel Core 2 Duo T5500 1.66Ghz
1GB PC2-5300 667Mhz
Matsh1ta DVD/RW Drive
232GB Western Digital 'My Book' External HDD USB 2.0
80GB Hitachi SATA HDD
Onboard Audio
Intel GMA 950 Onboard Video
Want to make a difference without leaving your chair?, then join the AOA folding team today!
AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 28th July, 2005, 08:25 AM
beno-the-baron's Avatar
Member
 
Join Date: July 2005
Posts: 9

keep going

Yeah well with this type of thing its just a case of perceverance, so if you keep going you'll get a lightbulb moment, I find. You could try it without ending the original if ,like in VB. I don't have a good idea what'll work though!

Good luck!
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 28th July, 2005, 08:29 AM
beno-the-baron's Avatar
Member
 
Join Date: July 2005
Posts: 9

How big is the if statement because I could have a look at it although i'd be unlikely to understand.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 28th July, 2005, 08:30 AM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

Well once i get the self-motivation kicking in again i might just comment out the existing monster of conditional nest and re-write it a bit clearer and hopefully i'll pick up any problems on the way using this method.

EDIT: 202 Lines and that's just the actual big nested if then, else if, else on it's own.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 28th July, 2005, 08:32 AM
beno-the-baron's Avatar
Member
 
Join Date: July 2005
Posts: 9

Good plan! It always helps to get your programs in order when they get out of control.

202 lines must be chaotic! hope you added loads of comments!
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 28th July, 2005, 09:06 AM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

LOL nah no commenting necessary for me it's fairly straight forward it's just alot of conditionals were required so i could give sufficent and half decent description of error's to the user so they know what went wrong when a command failed.

Also other half is checking to make sure they dont put text where numbers should be for example otherwise(during a type conversion) a nice exception error will be thrown at them with a "Microsoft help like" description

The command //MASSVX is a good example of this:

Syntax: //MASSVX Number, Text
Example: //MASSVX 20,

VX stands for virtual xpression(or emoticon/smilie as most are accustomed to).

If they put text instead of a valid ranged integer(1 to 25) in place of that 20 if i don't go checking to make sure it's an integer value before a conversion into a string an exception will be thrown at them as described above.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 28th July, 2005, 09:57 AM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

Sorry for the double post but i thought i should tell people that have been viewing the thread that the problem is solved(i don't think edited post activates instant email notification to a thread if selected).

The problem was the last Else statement which was for the very beggining of this nested bugger so basically i need to whack the new Else If between the last Else and Else If before the last Else.

I seriously don't know where my head has been lately im just not with it.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Delphi Allan Programming and Assembly Language 2 12th February, 2005 05:00 AM
Program? Microgers87 General Hardware Discussion 4 27th August, 2003 09:53 AM
Need program for C++ Allan Programming and Assembly Language 1 19th April, 2003 11:37 AM
Is there another program better than ghost for making hdd backup? BMORIN OS, Software, Firmware, and BIOS 3 22nd February, 2003 12:37 PM
ti-86 program... grr! drow_elf Programming and Assembly Language 2 28th October, 2002 08:37 PM


All times are GMT -5. The time now is 07:53 PM.


Copyright ©2001 - 2009, AOA Forums

Search Engine Friendly URLs by vBSEO 3.3.0