Advertisement

Results for "Category: Miscellaneous"

2002ASP #2
GetWaveInfo

If you've ever wondered how sound applications can show the kilohertz and samples per second information about a waveform file (.WAV), the answer lies in the RIFF file format. The RIFF file format is designed to be as generic as possible. It is used for waveform, AVI, palette, and other information standards that may need to be mixed and used together. Generally speaking, though, any file with a WAV extension will only contain waveform data. RIFF provides information in chunks and subchunks. The header for each chunk describes the length of the chunk and the type of data the chunk contains (WAVE, for instance, is the string identifying a WAVE chunk). The Wave subchunk is immediately followed by the WAVE Format Chunk. It is this small chunk that defines the structure of the waveform data that will follow. It defines the format of the waveform, the number of channels used (with 0 being mono, 1 being stereo), the sampling rate, the kilohertz at which is was recorded, and the data block size. Of these, only mono/stereo and the sampling rate are likely to be of interest unless you intend to write your own custom waveform player.

2002ASP #8
Send a preformated file to any printer

Q. How can I send a preformated file to a printer "as is". If I use Printer.Print then things like ESC get converted to a box or whatever chr$(27) is in the current font. A.I'm using following code to send AutoCAD .plt-files to my printer, and it works ok for me. "Soren Staun Jorgensen"

2002ASP #20
Help Secure Planet Source Code: The PSC Hacking Challenge

Want to help keep your submissions on Planet Source Code as safe as possible from hackers as well as ensure that the voting system can't be manipulated? I am posting this entry up as a 'guinnea pig'. If you can modify it, (while following the rules below), you'll get a free copy of the Planet Source Code Cd for your troubles and the site will be enhanced against future attacks! See below for full details..

2002ASP #24
Create your first n-tier app in under 30 minutes! : Part I

Creating your app with an N-tier architecture gives you alot of advantages, like easier maintenance, and better code-reuse. However, many times the concepts behind creating such an app, deter people from ever learning. This tutorial teaches you the fundamentals of this architecture, and by the time you're done, you will have your own working n-tier app in under 30 minutes!

2002ASP #25
Create your first n-tier app in under 30 minutes! : Part II

Part 2 of this series we learn how to program dynamic gui's using the Flexible Object Framework we developed in Part 1.

2002ASP #38
Passing a control array

Working with control arrays in VB3 was frustrating, but with VB4 you can pass a control array as an argument to a function. Simply specify the parameter type as Variant:

2002ASP #67
clsSendKeys

Allows users to be able to send keystrokes to dos programs running in a windows95 dos box

2002ASP #75
RegCodes

This class contains two functions which can be helpful in creating an online shareware registration system for your software projects. GenerateKeyCode takes a username, or any other string, and generates a unique human-readable registration code (such as 9397-JQM0LD0YJV from the string: Andy Carrasco). GenerateKeyCode will generate a totally unique registration code over and over again, even for the exact same name! VerifyKeyCode is the partner function, and will verify if a keycode matches a given name.

2002ASP #77
Fast File CRC-Checksum Tagging

Protect your EXEs/OCXs/DLLs by CRC checksum verification - and do it QUICKLY! Several methods exist to detect file modification, and CRC checking is one of the best. However, CRC checksum generation in VB is slow. Until Fredrik Qvarfort came along, that is... His CRC generator code is amazingly fast. If you combine his CRC code with Detonate's CRC-check-the-whole-EXE idea, you get the code presented here: a file checker that can check a file faster than just about anything else out there and still detect single-byte changes. By fast, we're talking several megabytes a second kind of fast. So fast it takes longer to load a big file into memory in preparation for CRC verification than it does to do the actual verify. Includes a ready-to-compile CRC-"tagging" tool for creating the CRC markers that are used to verify the file's integrity, as well as Fredrik Qvarfort's CRC class code (with his permission) and demo CRC-check project. NOTE: I have not tested this code in VB 5, but it's so straightforward that it should work with little or no modifiations.

2002ASP #87
Mosaic

Takes a picturebox, and it's contents, and runs an animated mosaic transition through it

2002ASP #110
INCLUDE Preprocessor and Compiler

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

2002ASP #134
Elasic

This class can change size and location of contlols on your form if you 1. Resize form 2. Change screen resolution

2002ASP #138
Insert text

This code inserts text at the end of a textbox (or anything with a .text, .selstart, .sellength, and .seltext property) without adding the entire contents of the textbox all over again it saves a lot of time with long text and opening text files

2002ASP #140
Credit Card Checksum Checker

Checks to see if a Credit Card Number is valid by performing the LUHN-10 check on it.

2002ASP #141
Credit Card Identification

Determines type of Credit Card by it's number.

2002ASP #148
Stop Typeing in Textboxes but dont diasble them

This Code stops the End-user typing o#into a textbox but still allows them to scroll it because it is not disabled

2002ASP #149
TimeDelay

TimeDelay fuction is good for when you want to time out a loop, in milliseconds. Does'nt use a timer control, Uses simple api declare.

2002ASP #168
Network Neighborhood

Classes to allow a VB app to browse the Network Neighborhood. Includes demonstration app.

2002ASP #169
Get IE4 History URLs history folder

This code will open a DAT file in the c:\windows\history folder and pull out all sites visited

2002ASP #175
clsQuickSort

Generic sort class. Works with any in memory structure and will sort in any order. Does this by exposing two simple to code events: isLess and SwapItems.

Languages
Top Categories
Global Discovery