Advertisement

Results for "Author: erik stites"

ASP_Volume3 #50075
Input into Flexgrid similar to Excel

Allows you to simply type what you want into a cell of a Flexgrid control, resembles Excel. You can also enter values in the text boxes to chenge the number of columns or rows quickly

ASP_Volume3 #50076
An Easy OOP Script engine

Simple scripting language using classes. Uses callbyname function to run a classes methods. This allows for very fast parsing, because there is no IF Then or Case statements. Create a class module with the functions that you want in your scripting 'language'. Then you can simply send a string of text into the class' parse function to get the name of the function and the values to be operated on. After you have gotten the name, use CallByName with the vbMethod operator. This is a quick class (OOP) example. To keep it simple, I didn't include properties, only public and private variables.

ASP_Volume3 #50077
Pure VB Hex Editor

A complete Hex Editor created using no API's or third party controls. WARNING- I take no responsibity for any lost information or files caused by using this source. At this time the code does not include a built in Backup function [add one if you would like] so if you accidentally damage files while using this program, well, I hope you have a backup already. Remember, It will never automatically save over your files unless someone changes my code themselves. Now that the disclaimer is out of the way... The way I have created this program, it only allows the user to save the 'current page' that they are working on. A page consists of 256 bytes on the screen at a time. I did this to save on memory usage as only a quarter of a kilobyte is loaded at a time. Because of this, and the fact that it is Event-Driven [uses no timer controls], it uses very little resources. This source includes a simple ASCII table built in [ok, with this it uses a half KB for data] that you can simply click and view even with a file open. To view the current file information, simply right click on the hex data list. This code shows how to: use binary file I/O, listbox manipulation, one and two dimentional arrays, Hex, inputbox, msgbox, ASCII and Chr functions This code is also very fast, even on my Pentium 150MHz laptop.

ASP_Volume3 #50078
A Spread Game (Virus Clone)

Designed to create a fairly simple game based on the online java game called Virus 2. I make no claim to the originality, in fact, Virus 2 can be found at: http://www.allgamesfree.com/games/ The code made to create this game does however show how to create and use Types, arrays, subroutines, nested loops, basic file I/O, testing using boolean logic, mesagebox, ToolTipText, and random numbers. cmdHelp also uses the tag property when clicked. I hope that this may be useful for beginners or anyone who wants to make games in VB. Very fast, with no API. Heavily commented.

ASP_Volume3 #50079
Using C++ dll with VB

Shows a step-by-step example of creating a C++ dll and using it in Visual Basic. I know, there have been other tut's like this, but I wrote this as I followed my own steps, and it ran the first time I tried it. File included .doc and source code.

ASP_Volume3 #50080
Tone Generator

This proj allows you to make audio tones and save them as a wave file. If you have looked at any Oscope type graphs of audio and wondered if you could create sound just by drawing, well, you can. It allows you to create Sine, Cosine, and a Combined signal at different frequencies. You can also draw your own wave clip in either the window or your favorite graphic editor. Use a 512w X 256h bitmap. Any color for the signal, as long as the background is black. To use this feature, Click the 'open bitmap' button and find your saved bitmap (you can also simply draw your own in the program) Then click 'Trace Bitmap' Now be sure to select the 'Use custom drawn' checkbox. Choose your wave properties, then click 'write wave' If you recieve an error when saving a custom sound, try removing any signal points that are very near the top or bottom of the bitmap. I have included a few of my own bitmaps for you to play with (Don't worry, the zip is only 14KB). I would like to thank Alex Murray and his "Bass Maker" for inspiration. Vote if you would like, or don't, but please leave feedback.

ASP_Volume3 #50081
Vector Quantization (image approximation)

This is my take on Vector Quantization. The idea behind this is to use a table of colors, then approximate which index of the table best matches each pixel in the image. After this, the table is adjusted based on the input values, and another test is done. After about 10 iterations, a decent image should be constructed. Now, unless you modify the code, this new image is made up of 128 colors. Yes, colors, not levels per channel. The trick to better images is to add just a little bit of noise to the original. Having 'slow' gradients in an image will take more iterations to estimate, and may still look bad. I used DIBits so there shouldn't be too many problems. I did however limit the size to a max of 256 colors in the table tho it is possible to change. Also, the images are set to 256x256 pixels. I planned on using this as a start of an image compression tool. If you have any suggestions that would help, please let me know. At the moment, I am working out a way to use a huffman tree to compress the pointers to the color index. Anyway, tell me what you think, good or bad.

ASP_Volume3 #50082
A 3D engine primer/landscape/lighting effects

This example is kind of a compilation. It shows how to create a 3D view and allow you to rotate a solid cube. I also created a method to create landscape meshes from an image(voxel to polygon?). If 3D is not your thing, you may be able to use the landscape code to create a lighting effects tool similar to photoshop. Source is somewhat commented, Includes Back Face Culling; Lighting using Point lights in space; One single API to draw filled polygons. Please leave comments, questions, problems... vote if you like...

ASP_Volume3 #50083
Pool table physics

Circular collision detection using movement vectors. Does not have actual game rules but you use a cue ball to hit others and they react upon collisions including chain reactions. There are probably better ways of doing this, but I initially made this with something else in mind that did not turn out...

C_Volume2 #67452
Tone Generator

This proj allows you to make audio tones and save them as a wave file. If you have looked at any Oscope type graphs of audio and wondered if you could create sound just by drawing, well, you can. It allows you to create Sine, Cosine, and a Combined signal at different frequencies. You can also draw your own wave clip in either the window or your favorite graphic editor. Use a 512w X 256h bitmap. Any color for the signal, as long as the background is black. To use this feature, Click the 'open bitmap' button and find your saved bitmap (you can also simply draw your own in the program) Then click 'Trace Bitmap' Now be sure to select the 'Use custom drawn' checkbox. Choose your wave properties, then click 'write wave' If you recieve an error when saving a custom sound, try removing any signal points that are very near the top or bottom of the bitmap. I have included a few of my own bitmaps for you to play with (Don't worry, the zip is only 14KB). I would like to thank Alex Murray and his "Bass Maker" for inspiration. Vote if you would like, or don't, but please leave feedback.

C_Volume2 #67569
Using C++ dll with VB

Shows a step-by-step example of creating a C++ dll and using it in Visual Basic. I know, there have been other tut's like this, but I wrote this as I followed my own steps, and it ran the first time I tried it. File included .doc and source code.

C_Volume2 #68430
A 3D engine primer/landscape/lighting effects

This example is kind of a compilation. It shows how to create a 3D view and allow you to rotate a solid cube. I also created a method to create landscape meshes from an image(voxel to polygon?). If 3D is not your thing, you may be able to use the landscape code to create a lighting effects tool similar to photoshop. Source is somewhat commented, Includes Back Face Culling; Lighting using Point lights in space; One single API to draw filled polygons. Please leave comments, questions, problems... vote if you like...

C_Volume2 #68614
Vector Quantization (image approximation)

This is my take on Vector Quantization. The idea behind this is to use a table of colors, then approximate which index of the table best matches each pixel in the image. After this, the table is adjusted based on the input values, and another test is done. After about 10 iterations, a decent image should be constructed. Now, unless you modify the code, this new image is made up of 128 colors. Yes, colors, not levels per channel. The trick to better images is to add just a little bit of noise to the original. Having 'slow' gradients in an image will take more iterations to estimate, and may still look bad. I used DIBits so there shouldn't be too many problems. I did however limit the size to a max of 256 colors in the table tho it is possible to change. Also, the images are set to 256x256 pixels. I planned on using this as a start of an image compression tool. If you have any suggestions that would help, please let me know. At the moment, I am working out a way to use a huffman tree to compress the pointers to the color index. Anyway, tell me what you think, good or bad.

C_Volume2 #69361
Pool table physics

Circular collision detection using movement vectors. Does not have actual game rules but you use a cue ball to hit others and they react upon collisions including chain reactions. There are probably better ways of doing this, but I initially made this with something else in mind that did not turn out...

C_Volume2 #71303
An Easy OOP Script engine

Simple scripting language using classes. Uses callbyname function to run a classes methods. This allows for very fast parsing, because there is no IF Then or Case statements. Create a class module with the functions that you want in your scripting 'language'. Then you can simply send a string of text into the class' parse function to get the name of the function and the values to be operated on. After you have gotten the name, use CallByName with the vbMethod operator. This is a quick class (OOP) example. To keep it simple, I didn't include properties, only public and private variables.

C_Volume2 #73605
Input into Flexgrid similar to Excel

Allows you to simply type what you want into a cell of a Flexgrid control, resembles Excel. You can also enter values in the text boxes to chenge the number of columns or rows quickly

C_Volume2 #73872
Logic Gates

To show how to use logical comparisons in VB. Shows the different symbols for the logic gates[heh, drawn by me...]. Also allows you to see the truth tables. Covers Or, And, Xor, Nor, Nand, and Xnor logic.

C_Volume2 #77498
A Spread Game (Virus Clone)

Designed to create a fairly simple game based on the online java game called Virus 2. I make no claim to the originality, in fact, Virus 2 can be found at: http://www.allgamesfree.com/games/ The code made to create this game does however show how to create and use Types, arrays, subroutines, nested loops, basic file I/O, testing using boolean logic, mesagebox, ToolTipText, and random numbers. cmdHelp also uses the tag property when clicked. I hope that this may be useful for beginners or anyone who wants to make games in VB. Very fast, with no API. Heavily commented.

C_Volume2 #78214
Pure VB Hex Editor

A complete Hex Editor created using no API's or third party controls. WARNING- I take no responsibity for any lost information or files caused by using this source. At this time the code does not include a built in Backup function [add one if you would like] so if you accidentally damage files while using this program, well, I hope you have a backup already. Remember, It will never automatically save over your files unless someone changes my code themselves. Now that the disclaimer is out of the way... The way I have created this program, it only allows the user to save the 'current page' that they are working on. A page consists of 256 bytes on the screen at a time. I did this to save on memory usage as only a quarter of a kilobyte is loaded at a time. Because of this, and the fact that it is Event-Driven [uses no timer controls], it uses very little resources. This source includes a simple ASCII table built in [ok, with this it uses a half KB for data] that you can simply click and view even with a file open. To view the current file information, simply right click on the hex data list. This code shows how to: use binary file I/O, listbox manipulation, one and two dimentional arrays, Hex, inputbox, msgbox, ASCII and Chr functions This code is also very fast, even on my Pentium 150MHz laptop.

Java_Volume1 #85996
Tone Generator

This proj allows you to make audio tones and save them as a wave file. If you have looked at any Oscope type graphs of audio and wondered if you could create sound just by drawing, well, you can. It allows you to create Sine, Cosine, and a Combined signal at different frequencies. You can also draw your own wave clip in either the window or your favorite graphic editor. Use a 512w X 256h bitmap. Any color for the signal, as long as the background is black. To use this feature, Click the 'open bitmap' button and find your saved bitmap (you can also simply draw your own in the program) Then click 'Trace Bitmap' Now be sure to select the 'Use custom drawn' checkbox. Choose your wave properties, then click 'write wave' If you recieve an error when saving a custom sound, try removing any signal points that are very near the top or bottom of the bitmap. I have included a few of my own bitmaps for you to play with (Don't worry, the zip is only 14KB). I would like to thank Alex Murray and his "Bass Maker" for inspiration. Vote if you would like, or don't, but please leave feedback.

Languages
Top Categories
Global Discovery