Click to See Complete Forum and Search --> : know the unknown...
prye
Aug 12th, 2000, 12:32 AM
latley..ive been trying to create and find truly orginal codes and functions..i think it would be a good thread for everyone to post a original, hard to find, or rare snipplet..i will post some later..like howto retrive the icon from a running task, howto recreate the system tray, howto add plugin support to your program using COM..
this would be nice to browse when you just cant find that damn code. and, will lead to some fresh idea's :)
V(ery) Basic
Aug 12th, 2000, 01:21 PM
I made an anagram function (not on PlanetSourceCode last time I checked) in VB. It's (6-8 seconds depending on certain facors). The anagrams don't have to be perfect ('Computers' will return lots of words inluding 'scrotum')
The word can be anything up to nine letters long. (I made this function for a Countdown game where contestants have to find the longest anagrams they can in a random nine letter word)
It can be done/Is so slow because instead of taking the word and jumbling it up, it goes through a text file, takes each word and sees if it fits into the original word.
Code can be provided if requested.
I worte a function that converts Bitmaps to ASCII Text or RTF. The structure is not to difficult (only about 10 lines of code). Basically it goes through the image, pixel by pixel and writes a character and colour to the Text Document respectivly.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.