Advertisement

Results for "Author: kamilche"

2002VB #18030
Simple Video Capture

A simple video capture program, in only 44 lines of code. Now includes a button to change video size, and a button to change video source. For a more complete implementation, go to Ray Mercer's site at www.shrinkwrapvb.com

ASP_Volume2 #26075
Simple ADO DataCombo Example

Explains how to hook a 'lookup' combobox to a data field at runtime. Doesn't use the ADO control - uses pure recordset manipulation. Illustrates what the differences are between 'DataSource' 'RowSource', 'BoundColumn', 'DataField', and 'ListField'. M$ documentation is truly bad at explaining this topic.

ASP_Volume2 #26992
AVI, MP3, WMA, Ogg, Midi, and more player!

This program allows you to play audio and video files in various formats, including MP3, Ogg, WAV, WMA, AVI, and more. It uses DirectShow, and doesn't require any DLL's or custom OCX's.

ASP_Volume2 #27076
Container Speed Testing - Hash, Array, Direct, List, Dictionary, Collection, Recordset

There's many different ways to store data in VB. This application tests a few of them. You shouldn't blindly choose the method that has the highest numbers! You should choose a method based on the usage pattern of your data. For instance, even though the timings say 'clsDirect' is fastest, for my application, a combination of clsHash and clsList proved to work 50% faster. If you don't know which method is best, try them all - they all implement interface IContainer, and swapping out one for another is a simple one-line code change.

ASP_Volume2 #29173
EZMailer, an SMTP/POP3 email program

Are you tired of Outlook and Outlook Express hanging your machine, and letting the KAK virus in? Well, I am too, so in response, I made EZMailer, a simple email program that sends and receives mail, PERIOD. It doesn't attempt to interpret or auto-execute ANYthing, thus sparing you from the vagaries of security loopholes in 'advanced' mail programs. This program receives incoming mail from a POP3 server, sends outgoing mail through an SMTP server, handles MIME attachments, multiple users, and automatically routes incoming mail to folders based on criteria you specify. Note that to successfully execute this code in the runtime environment, you must own Apex Software's TrueDBGrid Pro, www.apexsc.com; and Funduc's Encode/Decode DLL, www.funduc.com

ASP_Volume2 #29620
Choose Directory

Via API calls, has the user choose a directory. No commondialog needed!

ASP_Volume2 #30017
Add Error Handling

This is the complete code for a VB IDE addin that will add error handling to your procedure. Requires that you have a routine called "HandleError" in a public module accessible to all routines. Sample HandleError routine follows: Public Sub HandleError(ByVal CurrentModule As String, ByVal CurrentProcedure As String, _ ByVal ErrNum As Long, ByVal ErrDescription As String) On Error GoTo Err_Init MsgBox CurrentModule & " " & CurrentProcedure & ": " & ErrNum & " - " & ErrDescription Exit Sub Err_Init: MsgBox CurrentModule & " HandleError: " & Err.Number & " - " & Err.Description End Sub The best VB code handles errors in every routine - this makes the program very robust. However, there's no easy way to determine WHICH routine failed once you're inside of your global error handler 'HandleError'. Therefore, you must pass the routine name to the global error. This can be very tedious! :-O This addin adds an 'On Error Goto Err_Init' to the beginning of the routine, and an 'exit function', 'exit sub', or 'exit property' statement plus the error handling code at the bottom. To add error handling to a routine, place the cursor anywhere in the routine code, and choose 'Add Error Handling' from the 'Add-Ins' menu. The code this routine adds, looks like this: Exit (sub, function, or property here) Err_Init: HandleError CurrentModule, "(your routine name here)", Err.Number, Err.Description Note that it will automatically determine which sort of 'exit' statement is necessary, and what the name of the current procedure is, and pass the procedure name to the error handler.

ASP_Volume2 #30051
Sparks - or how to create fireworks over a background picture.

Inspired by the 'Sparks' example entered by Itay Sagui, this demo shows how to display sparks flying out of your mouse, against a background picture, with a programmer-defined color.

ASP_Volume2 #30467
Countdown Timer

Displays the number of days, hours, minutes, and seconds till a specified date. Allows you to enter multiple dates. Illustrates how to use the new ListView control in VB6, saving and retrieving from the registry, and the datediff function.

ASP_Volume2 #31035
Comment Manual

Prints out a 'table of contents' for your Visual Basic program, which contains method names, syntax, and comments only. Useful as 'cover sheets' for the actual code printout.

ASP_Volume2 #31529
INCLUDE Preprocessor and Compiler

Inserts text files at desired spots in the code before compiling. Doesn't modify original source!

ASP_Volume2 #31594
Code-Based Timers

Start and kill a timer using API calls only! Useful when you need timers that can't be placed on a form.

ASP_Volume2 #31694
Detect if Shift Key is down

A function that returns whether or not the shift key is currently down.

ASP_Volume2 #31709
QuickSort with Multiple Keys

This example performs a quicksort on multiple keys, on an array of UDT's in memory.

ASP_Volume2 #31795
Asynchronous Database Processing

Asynchronous Database Processing via Active EXE - When processing thousands of requests for a multi-user real-time application, you cannot afford to wait for the relatively slow database processing to occur. Here's the scenario: You have 1000 people already online and playing your multi-user game, and 10 people in the process of logging on right now. What do you do? You could process the logons right now, searching through thousands of user records, to load up their information - but then the game would appear to 'hang' for everyone already playing, waaaay bogus. You could process only 1 person at a time, in the main processing loop - that's better, but will add unnecessary slowdown to your program. What if you could log on the person in a BACKGROUND process, which wouldn't slow down the existing users? Ooh yeah. Or better yet, hand the request off to a machine across the network, dedicated to database processing? NOW we're talking! :-) You can do this easily, using Visual Basic ActiveX EXE's. Have fun with it!

ASP_Volume2 #32799
Dynamic JPG Compressor

Converts BMP to JPG 'on the fly' and lets you view the result on-screen. Source code for the DLL included.

ASP_Volume2 #32900
Picture Browser

Puts up a thumbnail size picture of all the pictures in a directory. Single clicking on a thumbnail takes you to a full size preview of that picture.

ASP_Volume2 #33225
Drag n Drop Files from the Desktop

Displays which files were dragged from Windows Explorer (the desktop) to your form. Resolves shortcuts as well, so any shortcuts dropped on the form resolve into the actual file.

ASP_Volume2 #33258
Load JPG, GIF, or BMP from Byte Array

Load a Picture object from an array of bytes in memory. Can load any type of picture a normal picture box can load - GIF, JPG, or BMP. Doesn't require the intermediate 'saving of the byte array as a file on the hard drive' step, or an actual picturebox, to blit.

ASP_Volume2 #33613
Control Internet Explorer via SHDOCVW in VB

Control IE through VB! Use the WebBrowser control in VB, and automatically navigate to sites, click buttons, fill in text fields, and more. As an example, I've included the 'NeoPets Helper' I made for my young daughter. NeoPets is a gaming web site that lets you have virtual 'pets'. You play various NeoPets games to earn NeoPoints, so you can feed your pets. However, my daughter's NeoPets were always starving because she couldn't play their games well. :-( So, I made this program for her. Anyways! Don't look at it for the NeoPets tips, look at it for tips on how to control IE through VB! It shows you how to navigate to various sites, wait until they load, click buttons, do generic mouse clicks and drags, extract text from the web page, fill in text fields on the web page, do 'screen scraping', press keys, and more. Feel free to use this program however you wish - but DON'T give me any credit, I don't want to know what you use it for. :-D

Languages
Top Categories
Global Discovery