SAMPLES - STANDARD MODULES    


* NOTE : If you have problems downloading these files, try holding the <SHIFT> key and left-click on the URL of the file.  If that doesn't work, right-click on the URL of the file and select "Save Target As..." or "Save Link As..."

    Name:   Description:   Required:
modBitmap.bas     
This module is a collection of very useful functions designed for use with Graphics manipulation. You can use it to find out information about pictures in memory, or to render such pictures on to specified Device Contexts (DC).

This is the main component of the cSprite_Bitmap.cls and cSprite_Background.cls class modules which use this module to draw sprites on a background.

  Nothing
modCenterWindow.bas     
Finds the specified window by Class ID or by Titlebar caption and centers the window.
  Nothing
modCOMDLG.bas     
Gives you all the functionality of the Microsoft Common Dialog (COMDLG32.OCX) ActiveX control, plus A LOT more!  No more .OCX to distribute.

  COMDLG32.DLL

modCommon.bas     
Full of the useful, commonly used functions to read/write to INIs, force a window to become activate, make a window stay top most, remove the X from the upper right of a window, get the windows... win\sys... and temp directories, browse for a directory, etc.
  Nothing
modCompress.bas     
This module gives you the ability to easily and efficiently compress and decompress files, text, and byte arrays with various compression levels and speeds.  This module does not let you "archive" multiple files into one file like some ZIP utilities, but that is something I have figured out how to do and may add if there's an interest shown... or if I ever need such functionality for myself.   =)
  ZLIB.DLL
modControls.bas     
This module is meant to make it easy to find and use controls on parent objects (i.e. - Form, MDIForm, UserControl, PropertyPage or any other parent object which supports the "Controls" collection property and "hWnd" property) based on their names, handles, and/or parent handles.
  Nothing
modCPUInfo.bas     
This module gives you access to all the core information of the user's computer including: the number of CPUs the computer has, the type of CPU they have, the speed of the CPU, how much RAM the computer has, what type of operating system the user is on, what service pack the user has, etc.
  Nothing
modCPU_Intel.bas     
This module gives you access to extended information about Intel CPU chips like the true CPU speed, the true CPU model name, extended CPU model name, whether CPU has MMX or not, CPU time stamp info, etc.

NOTE : This module has not been tested on Intel compatible CPUs like AMD, etc.

  VBCPUINF.DLL

modCreditCard.bas     
This module allows you to easily and quickly check if a supplied credit card number is valid. It will also tell you what type of credit card it is based on the number (VISA, MC, Discover, Amer Ex, or Diners Club).

WARNING: This module is NOT meant to tell you if the credit card number is "valid"... only that it is "well formed". You should only use this routine to make sure the user correctly typed in their credit card number before submitting it to a third party company. They will tell you if the account that the number represents exists, is valid, and has not expired.

  Nothing
modDosCommand.bas     
This module is very similar to "modShellCommand.bas", however it does not write out to a temp file in order to capture the output text.  This is useful when you need everything to be done in memory or you have file access/permissions issues with your users.
  Windows NT
based Operating
System
modDownload.bas     
This module wraps the MS INET control to give you an easy to use interface to download files from the internet via a variety of standard internet protocols.
  MSINET.OCX
modDUN.bas     
Allows full, low-level access to the Dial-Up Networking (DUN) components on your computer as well as information about Remote Access Server (RAS) connections.  This module also allows you to create and hang-up connections to the internet or a remote server behind the schenes so that the user never has to interact with dialogs.
  (See Module)
modErrorHandler.bas     
This module makes it easy to trap, track, and log errors in a central location.
  CDONTS.DLL
  MSXML 2.0
modFindFile_API.bas     
A powerful and fast module that gives you the ability to programatically search for a specified file in a number of ways over the specified folders and/or drives.  It also gives you easy access to information about the user's drive configurations / file systems.
  Nothing
modFindFile_FSO.bas     
A powerful and dynamic module that gives you the ability to programatically search for a specified file in a number of ways over the specified folders and/or drives.  It also gives you easy access to information about the user's drive configurations / file systems.

  SCRRUN.DLL
 
(Microsoft
  Scripting
  Run Time
  Library)

modFonts.bas     
Allows you to easily populate a ComboBox, ListBox, or multi-lined TextBox with the names of all the available fonts on the user's system.
  Nothing
    
    
modFreeImage.bas
    
* IMPORTANT:

As of April 8, 2004 the "modFreeImage.bas" module for VB5 and VB6 is no longer available as a FREE download from "The VB Zone" web site. The FreeImage wrapper module is now part of the "Advanced Imagery Library" which is sold for $25.00 USD ($15.00 USD if you previously purchased the "Advanced Bitmap Processing" module) via "The VB Zone" web site.

If you need a VB wrapper for the FreeImage, the "Advanced Imagery Library" (or AIL) contains a wrapper for both FreeImage v2.x and v3.x. For more information, go to the following URL:

http://www.thevbzone.com/ab.htm
 

    
  FreeImage.dll

modFTP.bas     
This module uses the WININET.DLL to give you full FTP functionality including the ability download files, upload files, get directory listings, change directories, and find out details about files located on an FTP server.  You also have the ability to use passive FTP connectivity and ASCII (Type A) and Binary (TYPE I) transfer methods to transfer files.

modWININET.bas

- AND -

Win95B or better
- OR -
Internet Explorer 3.0 or better

modGetLastError.bas     
This module is used to easily find out if the last Windows API caused an error, and if so, display the error message showing the error's number and description.  This only works with the Windows API's that use the GetLastError API to return an error number - not all do.

This module includes error descriptions for EVERY possible error returned by the GetLastError API and the constant values for each... including ones not found in the VB API Viewer.

  Nothing
modGetLastError1.bas     
This module is used to easily find out if the last Windows API caused an error, and if so, display the error message showing the error's number and description.  This only works with the Windows API's that use the GetLastError API to return an error number - not all do.

This module uses an API call to get the error's description instead of defining each error and searching each one for the right error code.

  Nothing
modGradient.bas     
This module (originally written by Chris Vidler) takes the specified form and makes it's titlebar gradient.

This module was modified in the following ways:
  -  Errors fixed
  -  Option added to specify colors
  -  Option added to specify quality
  -  More error checking added
  -  Titlebar caption and Icon now
     display correctly

  -  More details in module
     documentation...

  Nothing
modGradObj.bas     
Allows you to gradiate any specified object between any two colors as long as that object has the AutoRedraw property and the Line method available to it.
  Nothing
modHiLo.bas     
This module is meant to make getting the "High Order" and "Low Order" of a specified LONG or INTEGER value. This module also will take a BYTE or INTEGER "High Order" and "Low Order" value and properly combine them to make either an INTEGER or LONG value. Many Win32 API functions and callbacks make use of this to pass two pieces of information through one variable.

  Nothing

modHtmlSource.bas     
This module makes a standard HTTP request to the specified URL that you give it (just as any web browser like MSIE or Netscape would) and returns back either the HTML code that makes up the resulting web page (the server response), or the XML code that results if the return is XML.
  XML 2.0
  or Better
  (Which
  comes with
  MSIE 4.x or
  better)
modICON.bas     
This module makes it easy to save any kind of picture as a standard Windows icon (.ICO) file.  This module allows you to specify the transparent/MaskColor of the icon to be created, and will allow you to make an icon of any size... not just 16x16 or 32x32.  The icon is created to the size of the picture to save.

  ImageList
  Control
  (Microsoft
  Windows
  Common
  Controls)

modJPEG.bas     
Allows you to easily open, display, and save pictures as JPEGs.  Also allows you to specify the quality of the JPEG to save.

  cJPEG.cls
  IJL10.DLL

modKeyboard.bas     
Allows you to send a single key stroke, or a string of keys to the currently active window.  Also allows you to check if any key has been pressed, or wait for any key to be pressed.
  Nothing
modListView5.bas     
This module makes it easy to turn the "ListView" control that comes with the Windows Common Controls 5.0 library into a spread sheet control that looks similar to Excel or Quatro Pro.  The usage of the ListView control alone is rather odd, so this module makes it very easy and straight forward to use.
  COMCTL32.OCX
modListView6.bas     
This module makes it easy to turn the "ListView" control that comes with the Windows Common Controls 6.0 library into a spread sheet control that looks similar to Excel or Quatro Pro.  The usage of the ListView control alone is rather odd, so this module makes it very easy and straight forward to use.
  MSCOMCTL.OCX
modMemoryAVI.bas     
This module allows you to play, pause, stop, rewind, fast-forward, and manipulate AVI files from memory (RAM) that have been loaded using either the "LoadLibrary" API, or the cResource.cls class module.
  Nothing
modMemoryWAV.bas     
This module allows you to play and stop WAVE files from memory (RAM) that have been loaded using either the "LoadLibrary" API, or the cResource.cls class module.
  Nothing
modMP3.bas     
This module makes it easy to get and set the MP3 ID3v1 TAG's within MP3 files. This module does not yet have the ability to read or write MP3 ID3v2 TAG's, thought it will probibly do so in the future.
  Nothing
modOpenAndClose.bas     
Starts up any specified program using the CreateProcess() API, returning the Process Handle/ID, and Thread Handle/ID.  It then uses that information to FORCE down the program if need be.
  Nothing
modOS_Info.bas     
Allows you to easily tell what opperating system the user is running (including Windows 2000) as well as additional OS information... like the OS build number, and version number.
  Nothing
modPaths.bas     
Returns any number of paths to different folders on the user's system from the Desktop, to the Favorites folder, to the Windows directory, etc.
  Nothing
modPictureTweak.bas     
Takes a specified picture object (PictureBox, Form, etc) and Flips, Inverts, or Rotates it's picture.
  Nothing
modPING.bas     
This module uses the Windows Sockets API to resolve IP addresses from standard internet addresses, to resolve the current user's computer name (host name), and to PING a server and get back the results of the PING.

PINGs are most commonly used to test the speed of a connection to a remote server by sending data to it and timing how long it takes the server to get the data and send a response.

modWINSOCK.bas

- AND -

Winsock v1.1
- OR -
An Operating System that comes with at least Winsock 1.1 installed

modPNG.bas     
This module gives you full access to all structures, constants, enumerations, and exported functions contained within the LIBPNG_VB.DLL library.  LIBPNG.DLL is the official library (DLL) for the Portable Network Graphics (PNG) image file format.  The official library is compiled using "__cdecl" as the calling convention (which is designed for C/C++ users and makes the DLL unusable to VB).   The new library LIBPNG_VB.DLL gives all the same functionality that LIBPNG.DLL v1.0.12 does, but uses "__stdcall" as the calling convention (which allows VB to access it).

This module is compatible with LIBPNG_VB.DLL
version 1.0.12.

LIBPNG © 1998-2001 Glenn Randers-Pehrson (with contributions from other authors)
Visit the LIBPNG web site at:
http://www.libpng.org/pub/png/

  LIBPNG_VB.DLL
  (Std C DLL)
      100K

  ZLIB.DLL
  (Std C DLL)
      52.5K

modProgressBar.bas     
This module takes a standard PictureBox control and turns it into a ProgressBar similar to the one that comes with the Microsoft Common Controls.
  Nothing
modRegistry.bas     
Allows you to easily read from and write to the Windows registry.
  Nothing
modRegistry_Adv.bas     
This module gives you advanced and high-level access to every facet of the Windows Registry and comes complete with full error checking, version checking, and OS checking.
  Nothing
modREGSVR32.bas     
This module allows you to programmatically register and unregister COM objects such as ActiveX DLL's, ActiveX EXE's, and ActiveX Controls (OCX's).
  Nothing
modScreen.bas     
Thise module (along with cScreen.cls) give you all the information available via the standard VB object "Screen" so you can use this information in VBA applications like AutoCAD and MS Word 97 where the Screen object is not available. The information reported by the cScreen.cls class module is actually more accurate than the Screen object when it comes to properties like the TwipsPerPixelX and TwipsPerPixelY.

This module also give you A LOT more functionality on top of the standard information available to you via the VB Screen object like the ability to dynamically resize the screen size and draw objects and pictures directly to the display area of the screen.

  cScreen.cls
modScreenCapture.bas     
Allows you to capture a specified window, a specified area on a form, a form, or the entire screen.  This module also allows you to print a picture to fit the whole page by stretching it.
  Nothing
modShellCommand.bas     
This module allows you to execute "MS-DOS" style commands that you'd normally execute at a command prompt (i.e. - IISRESET, PING 127.0.0.1, TRACERT 127.0.0.1, etc) and get back the result text that would normally be printed to the command console. This can be helpfull in checking the return status of "MS-DOS" style commands.
  Nothing
modShortcuts.bas     
This module allows you to easily create a shortcut to any file and put it anywhere on the same drive as the START MENU/PROGRAMS folder (including the Desktop and the START menu).
  STKIT432.DLL
modSort.bas     
This module takes an array of any data type and sorts it ascending or descending. It uses an efficient sort method called a "Shell Sort" to do this. I've clocked it at sorting arrays of 100,000 elements from 2 to 10 seconds depending on how "out of order" the elements are.
  Nothing
modSubCls.bas     
This DLL makes sub-classing windows messanges in Visual Basic safer by taking it over and handling it outside of VB. This makes editing sub-classing code at run time within VB possible because it doesn't lock up the VB IDE.
  SubCls.DLL
  (Std C DLL)
        12K
 
  SubCls.TXT
modSuperShell.bas     
This module gives you a more powerful and more reliable way to start programs.  This also allows you to start an Email message with the default Email client, go to a URL with the default web browser, open Windows Explorer to a specified directory, etc.
  Nothing
modSysFonts.bas     
This module allows you to dynamically retrieve or change any standard system-wide font setting in Windows.
  Nothing
modTimer.bas     
This is an alternative to the standard VB Timer control.   It allows you to more accurately fire timer events, and track the elapsed time all without requiring a form for the Timer control.

  cTimer.cls

modTimeZones.bas     
This module is meant to make it easy to find out what time zone the user is in, whether that time zone is subject to Daylight Savings time, and if so... what the offsets for Standard time and Daylight Savings time are.
  Nothing
modTTF.bas     
This module makes it easy to list the current system's fonts and tell which ones are True Type Fonts (TTF) and which are not.
  Nothing
modTitlebarPopUp.bas     
Gives you the ability to completely customize and control the pop-up menu that comes up when you right click on a window's titlebar.
  Nothing
modWheelMouse.bas     
Gives you easy access to the mouse wheel roll event for mice that have a Microsoft Intellimouse compatible rolling wheel.

  Wheel Mouse

modWheelMouse_OCX.bas     
Gives you easy access to the mouse wheel roll event for mice that have a Microsoft Intellimouse compatible rolling wheel.  This differs from modWheelMouse.bas in that it does no subclassing.  Instead it uses an ActiveX control to handle the subclassing of Windows messages.  This gives more stability during debugging.

  Wheel Mouse
  MSGHOO32.OCX

modWININET.bas     
This module gives you full access to all the documented API calls within the WININET.DLL along with all types/structures and constants required to do so.  This module also includes full quick-reference documentation of each API for ease of use.

This module can be used to give you FTP, HTTP, and Gopher functionality without any additional dependencies.

Win95B or better
- OR -
Internet Explorer 3.0 or better
_______

Some functions require IE4 or IE5

modWINSOCK.bas     
This module gives you full access to all the documented API calls within the WSOCK32.DLL / WS2_32.DLL along with all types/structures and constants required to do so.  This module also includes full quick-reference documentation of each API for ease of use.

This module can be used to a variety of things like resolving IP addresses, PINGing servers, sending and receiving Email, etc. all without any additional dependencies.

Winsock v1.1
- OR -
An Operating System that comes with at least Winsock 1.1 installed
_______

Some functions require Winsock v2.0

modXML.bas This module allows ou to take advantage of XML (eXtensible Markup Language).  This module makes it easy to load and save XML as well as convert it back and forth between XML and ADO (ADODB.Recordset).

XML 2.0 or better (which comes with IE 4.x or better)
_______
ADO 2.5 or better (which comes with MDAC 2.5 or better)

       

 


MAIN   |  DOWNLOADS  |  SAMPLE CODE  |  STEP BY STEP  |   DISCUSSION BOARD  |  LINKS  |  AUTHOR
E-MAIL