Results for "Author: martijn b"
Ever needed to read the 23553th Line from a 5MB file? This class will do that, *without* storing the file in an array! Very fast binary file access to read one or more line(s) by *line number*. Now you can read files page by page - backward.
[NOTE: THERE IS A NEWER VERSION] This routine shows how you can process nested search-replace operations on large strings (megabytes) with VB. The program accepts a text-file as input and will output a colorized RTF file. Nothing new about that, but this program will generate large RTF files really fast because it uses a text buffer for string processing. You will see the difference if you try to colorize a 500+ kb XML file, most (all?) other 'colorize' programs on PSC that use native VB will fail on large files.
Update: 6/22/2001 Added exe and Encode function Decode HTML, ASP and JS files that were encoded with the MS script encoder SCRENC.EXE Add the Class file to your code to include decoder functionality.
Ever needed to read the 23553th Line from a 5MB file? This class will do that, *without* storing the file in an array! Very fast binary file access to read one or more line(s) by *line number*. Now you can read files page by page - backward.
[NOTE: THERE IS A NEWER VERSION] This routine shows how you can process nested search-replace operations on large strings (megabytes) with VB. The program accepts a text-file as input and will output a colorized RTF file. Nothing new about that, but this program will generate large RTF files really fast because it uses a text buffer for string processing. You will see the difference if you try to colorize a 500+ kb XML file, most (all?) other 'colorize' programs on PSC that use native VB will fail on large files.
Update: 6/22/2001 Added exe and Encode function Decode HTML, ASP and JS files that were encoded with the MS script encoder SCRENC.EXE Add the Class file to your code to include decoder functionality.
Ever needed to read the 23553th Line from a 5MB file? This class will do that, *without* storing the file in an array! Very fast binary file access to read one or more line(s) by *line number*. Now you can read files page by page - backward.
[NOTE: THERE IS A NEWER VERSION] This routine shows how you can process nested search-replace operations on large strings (megabytes) with VB. The program accepts a text-file as input and will output a colorized RTF file. Nothing new about that, but this program will generate large RTF files really fast because it uses a text buffer for string processing. You will see the difference if you try to colorize a 500+ kb XML file, most (all?) other 'colorize' programs on PSC that use native VB will fail on large files.
Update: 6/22/2001 Added exe and Encode function Decode HTML, ASP and JS files that were encoded with the MS script encoder SCRENC.EXE Add the Class file to your code to include decoder functionality.
Use _ANY_ (fixed width) font to create ASCII art. The code will scan the font and your picture to create the optimal ASCII image. The screenshot shows it all. The code is commented, but here is some explanation. You choose a picture and a font (Courier / Terminal / Lucida Console) and a font size. The code will create an array for all 255 grey values that maps to a character in your font. This is done by printing each character and 'scanning' it with GetPixel. After this the picture is scanned and the ASCII art - string is created. The code is fast and can be used on larger pictures, even without compiling. Leave a vote, (or better: a comment) if you like it. (updated 2/19/2003)
This code will convert text in an image to editable text. The code must know the font used, so It will only work on screen captures - not on scanned images. I intend to add a screen capture function in the near future, so you can grab any text from any window. Right now this is just proof-of-concept code, and it has a few flaws.. :-) It doesn't work with Italic fonts or 'handwriting' fonts. I also need to find a way to get the routine find the vertical start of the text. Please comment on the general idea.
[NOTE: THERE IS A NEWER VERSION] This routine shows how you can process nested search-replace operations on large strings (megabytes) with VB. The program accepts a text-file as input and will output a colorized RTF file. Nothing new about that, but this program will generate large RTF files really fast because it uses a text buffer for string processing. You will see the difference if you try to colorize a 500+ kb XML file, most (all?) other 'colorize' programs on PSC that use native VB will fail on large files.
This function accepts a text-file as input and will output a colorized RTF String. Nothing new about that, but this program will generate even large RTF files very fast. You will see the difference if you try to colorize a 500kb XML file. You may add the modules to your code to add HTML/XML/XHTML source viewing capabilities. The code has gotten quite complicated, but the adjustable parts are documented. (changing colors, or the tags that need coloring). You can for example color all tags red. This is version 2. 2001-11-24 Changes: [-] Twice as fast. (500kb/s. on PIII450) [-] Added a cAppendString class instead of using Mid$. [-] Fast string space allocation by API calls. String pointer swapping. (Thanks to VBSpeed) [-] Now uses Regular Expressions to color the 'inside' of tags (THANKS to Gary aka RegX for the idea to use REGULAR EXPRESSIONS. You can download similar projects from RegX here on PSCODE) [-] Added a RTE control to speed up viewing. CREDITS AND COPYRIGHT: MartijnB ([email protected]) Money, rewards, bugs and .. can be send to me (please!) SEE README.TXT
Ever needed to read the 23553th Line from a 5MB file? This class will do that, *without* storing the file in an array! Very fast binary file access to read one or more line(s) by *line number*. Now you can read files page by page - backward.
Update: 6/22/2001 Added exe and Encode function Decode HTML, ASP and JS files that were encoded with the MS script encoder SCRENC.EXE Add the Class file to your code to include decoder functionality.
Encode and Decode internet text data. * Super to convert VB code in HTML pages like those on PSC to text. If you have worked with ASP, PHP or any server side language, you will know that HTML data needs to be encoded. Sometimes it may be useful to decode existing html, but there is no htmldecode function in ASP. * WebCoder will Decode data that is HTML- URL- or ISO encoded. * WebCoder will Encode data. Great for database driven websites. * Best of all: change encoding definitions or add your own.All character encoding data is in an Access MDB that will be created when you first run the project. *** I like to get feedback. Read the about box for my email.
Encode and Decode internet text data. * Super to convert VB code in HTML pages like those on PSC to text. If you have worked with ASP, PHP or any server side language, you will know that HTML data needs to be encoded. Sometimes it may be useful to decode existing html, but there is no htmldecode function in ASP. * WebCoder will Decode data that is HTML- URL- or ISO encoded. * WebCoder will Encode data. Great for database driven websites. * Best of all: change encoding definitions or add your own.All character encoding data is in an Access MDB that will be created when you first run the project. *** I like to get feedback. Read the about box for my email.
Ever needed to read the 23553th Line from a 5MB file? This class will do that, *without* storing the file in an array! Very fast binary file access to read one or more line(s) by *line number*. Now you can read files page by page - backward.
[NOTE: THERE IS A NEWER VERSION] This routine shows how you can process nested search-replace operations on large strings (megabytes) with VB. The program accepts a text-file as input and will output a colorized RTF file. Nothing new about that, but this program will generate large RTF files really fast because it uses a text buffer for string processing. You will see the difference if you try to colorize a 500+ kb XML file, most (all?) other 'colorize' programs on PSC that use native VB will fail on large files.
This function accepts a text-file as input and will output a colorized RTF String. Nothing new about that, but this program will generate even large RTF files very fast. You will see the difference if you try to colorize a 500kb XML file. You may add the modules to your code to add HTML/XML/XHTML source viewing capabilities. The code has gotten quite complicated, but the adjustable parts are documented. (changing colors, or the tags that need coloring). You can for example color all tags red. This is version 2. 2001-11-24 Changes: [-] Twice as fast. (500kb/s. on PIII450) [-] Added a cAppendString class instead of using Mid$. [-] Fast string space allocation by API calls. String pointer swapping. (Thanks to VBSpeed) [-] Now uses Regular Expressions to color the 'inside' of tags (THANKS to Gary aka RegX for the idea to use REGULAR EXPRESSIONS. You can download similar projects from RegX here on PSCODE) [-] Added a RTE control to speed up viewing. CREDITS AND COPYRIGHT: MartijnB ([email protected]) Money, rewards, bugs and .. can be send to me (please!) SEE README.TXT