ALL,NEW,AND,ANT,ITS,BEEN,GODITS,IMPROVED,SIMU
Quick Search for:  in language:    
ALL,NEW,AND,ANT,ITS,BEEN,GODITS,IMPROVED,SIMU
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
RentACoder Stats

 Code:  lines
 Jobs: 0 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for RentACoder.
Wrapping Scrolling Text
By Paranoid_Androi d on 7/2


Create A Dummy File
By AML on 7/2


Click here to see a screenshot of this code!Captionbar manipulation!
By Peter Hebels on 7/2

(Screen Shot)

A Game Of War
By Co0nest on 7/2


Click here to see a screenshot of this code!KeyGen Example
By Bengie|NET on 7/2

(Screen Shot)

Click here to see a screenshot of this code!OpenBrowser v1.9
By Orlando Jerez on 7/2

(Screen Shot)

SendMessageBySt ring() Example
By Jaime Muscatelli on 7/2


Click here to see a screenshot of this code!FirstSunday
By Jan Paul Penning on 7/2

(Screen Shot)

Click here to see a screenshot of this code!Ikonz v1.0
By Gaurav Creations on 7/2

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

ant simulator!!!! THE SEQUEL!!!!!

Print
Email
 
winzip icon
Submitted on: 4/27/2001 6:54:08 AM
By: necromunda 
Level: Intermediate
User Rating: By 27 Users
Compatibility:

Users have accessed this code 11167 times.
 
 
     OH MY GOD!!!!! IT'S THE ALL NEW AND IMPROVED ANT SIMULATOR!!!!! AND IT'S BEEN IMPROVED AGAIN!! IMPROVED features including: *Screen Saver mode (improved) *(improved) Improved search algorithms *New form layout (improved) *Adjustable form (improved) sizing *Slightly (improved) improved graphical methods *Lots more.....(improved) So download today. Tell your friends, tell their friends. Tell people you meet on the street. Vote!! Pass comment! Tell me to stop with the ants already! NOW!

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    //**************************************
    //     
    //Windows API/Global Declarations for :a
    //     nt simulator!!!! THE SEQUEL!!!!!
    //**************************************
    //     
    Bit blt
    sleep
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for langauges that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 6 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
4/27/2001 7:01:58 AM:hellgrunt
WOW. I am so impressed with this vastly 
improved version of Ant Sim! You must 
have spent ages on it. Congrats  8)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/27/2001 7:11:35 AM:omar
this is the best thing i have ever 
seen. I am proud to say that i know 
him!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/27/2001 2:33:38 PM:Simon Price
Ha ha, that's pretty cool :-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/28/2001 6:17:10 AM:Nathan Chere
This would rule if you could make a 
screen saver out of this where the ants 
ran across the desktop instead of a 
white form... 5 globes for you!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/7/2001 10:41:02 PM:Teco
This is too cool
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/7/2001 11:09:47 PM:Jason Brimblecombe
This is really good! Visit my website 
sometime: http://www.jbrimble.net
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/8/2001 4:07:32 AM:necromunda
Hello everyone!
Thanks for the 
posts.
Just wanting to ask if anyone 
would know how to use the desktop as 
the background instead of a white 
background.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/9/2001 12:05:49 PM:Tuomo Hepokangas
Very cool.. 5/5
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/11/2001 2:45:56 AM:BillSoo
You can copy the desktop using the 
GetDesktopWindow API call to get the 
desktop hwnd. Then use the GetDC API 
call to convert the hwnd to a hDC. Then 
use BitBlt to copy the desktop image to 
the picture.
Some caveates though, I 
was only able to make it work if I set 
the picture autoredraw property to 
TRUE. This required putting 
picture1.refresh commands in a number 
of places. Also, it worked better when 
I removed most of the form resizing 
code and made the form invisible just 
before I copied the background.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/12/2001 11:49:01 AM:Cory J. Geesaman
this is awsome, if you want to get the 
desktop i would suggest u just take a 
screenshot, that way it looks like it 
normally would w/ all windows open and 
stuff, but it will just have the ants, 
that would rule
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/15/2001 6:09:40 AM:Stefan
Why would you want to make a screenshot 
of the desktop. Just make your form 
transparent. Some other projects on 
this site show you how to do this
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/21/2001 1:42:34 PM:HyperSonix
I voted 5 globes.  Best Code EVER! I 
loved it!  I've got a cool mod that 
let's you do skins.  Can I modify your 
code with it and send it to you? email 
me at hypersonix@earthlink.net
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/21/2001 10:14:45 PM:P. Rosebush
Bravo....amzing what the mind can think 
up. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/22/2001 1:34:04 PM:necromunda
i can't tell if that's an insult or a 
compliment......:)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/24/2001 1:44:31 AM:dispid
very cpu intensive.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/24/2001 4:12:37 PM:necromunda
Hmmm.....maybe its a bug.....
(boom 
boom)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/29/2001 5:15:52 PM:Hellmark
very cool code, plus if its good 
enought for simon its good enough for 
me. I have a suggestion though, can you 
have it on a transparent bg, and also 
have it tell you who ate the most
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/29/2001 5:56:22 PM:necromunda
The transparent bg could be a problem 
but the apples thing will be easy. 
Anyone know how to make the form and 
a picbox transparent?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/9/2001 6:01:16 AM:Brett
Hi, great app ! A great way to learn 
bitblt and a bit of OO stuff. I've 
humbly made some enhancements on it - 
features like the ants are assigned a 
random speed and health. The speed is 
obvious but the health measures how 
long the ant will survive. At the end 
of each 'day', every ants health is 
reduced. But for each apple they eat, 
their health is increased. At the end 
of each 'day', if the ant has bad 
health it dies automatically.
I 
worked on the interface a bit too. Just 
way too much fun ! I plan on adding 
more stuff - if you would like a copy, 
please contact me !
Cheers, and 
Kudos !
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/13/2001 8:03:58 PM:BlackWizzard
waow!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | RentACoder Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.