Select a Language
Active Server Pages | MS Registry | C++ | CSharp (C#) | VB6 | VBS | T-SQL

Active Server Pages (.asp)
Download large binary files - By Chizl
If your hitting a 4MB limit while downloading binary files via ASP, this code will fix that.

Microsoft Registry (.reg)
Turn Off Vista Confirmation Prompts - By Chizl
This allows you to turn off the confirmation prompts which are quite annoying without turn off UAC.

Microsoft Visual C++ 6.0
SNMP NIC Query By Chizl
This example shows how to query SNMP to get a specified NIC Adapter's TCP and Unicast bytes sent and received.
Inc: snmp.h
Lib: snmpapi.lib
SNMP API: SnmpExtensionQuery and SnmpExtensionInit

ServiceSample.zip - (381KB) By Chizl
More Advanced ATL example of building a Win NT/2000 Service/Application.
This was developed in VC++6.0 SP6. Be sure to read the "### READ ME ###.TXT"
Here's what this Service will show:
  • How to run as a Windows Application or a Windows service, under the same EXE.
  • How to run one instance of the exe at a time.
  • How to set "Service Description" under services MMC.
  • How to set services "Interact with Desktop" under services MMC.
  • How to set services "Startup Type" under services MMC.
  • How to set services "Recovery" for "First Failure" under services MMC.
  • How to manage threads when a service is shut off manually, while displaying a box
    saying to wait while service shuts down properly.
  • How to write to the EventLogs without the message about EventID being invalid.
Check out the snapshot of over 900 threads maintained.

This is an ATL Services with No Dependencies. Great for Mail Servers that you want to run under Win95/98 as an Application and if on NT/2000 it runs as a service. No dual code needed.

ATLMail.zip v2.2 - By Chizl
ATL/STL/Winsock example of sending email at a very rapid speed. Here is the Interface and the Here is the ReadMe.txt for this DLL. (example.vbs - VC++ Example) VBS Example Included)

This Code falls under the GNU General Public License

This DLL supports:
  • SMTP Authentication
  • Respond To
  • Bounce To (This is a great thing that is NOT in other mail object.
    It allows you to have the email bounce to a different email than the
    reply-to or from email address. Great for List or Discussion Servers.)
  • Custom Headers
  • Multiple Attachments
  • HTML
  • Plain Text
  • AsyncSend (so your application isn't locked up while send is in progress. (made for large email uploads).
  • Receipts (header)
  • Priority (header)
  • User Location (date header) (Full detail for 74 different timezones)
      Example:
    • Canada Central Standard Time - (GMT-06:00) Saskatchewan
    • Central America Standard Time - (GMT-06:00) Central America
    • Central Standard Time - (GMT-06:00) Central Time (US & Canada)
    • Mexico Standard Time - (GMT-06:00) Mexico City
RSPerfMon.zip - By Chizl
ATL/STL example of using PDH.DLL Local or Remote so you can access the NT/2000 Performance Monitor direct or with users interaction. Here is the Interface for this DLL. (test.vbs Example Included)

This Code falls under the GNU General Public License

ADOExample.zip - By Chizl
This is a very easy quick example of how to use ADO's GetRows using C++.

This Code falls under the GNU General Public License

Microsoft C# 2008 (C Sharp)
Free Threaded Logger Class - By Chizl
I was needing a logging process without slowing down my existing server. So I wrote this logger, which I hope all finds useful.

DirecotryWatch.zip - By Chizl
Example to show how to monitor folders for file or folder changes.
To test this application, after starting, create a new folder in the C:\TEMP folder. You should see an alert.
Then go into C:\TEMP\TEST1\ or C:\TEMP\TEST2\ folder, create a file. You will not see an alert, but when you delete it you will.

This Code falls under the GNU General Public License

GetHardwareInfomation.zip - By Alireza Shirazi - www.shirazionline.net - Domain No Longer Exists
Small utility using WMI to pull all kinds of stats from your machine. I really like all the things this project can do so I had to add it to the site.

Microsoft Visual Basic 6 (VB6)
BubbleSort.zip - By Chizl
This is a Bubble Sort with Ascending or Descending for Multidimensional Arrays using Date, Text, or Long sort types and Written with ASP in mind. Full Demo Included.

AppTalk.zip - By Chizl
This is a full example of two applications talking using the Winsock Control. Full Demo Included.

This Code falls under the GNU General Public License

ExitWindowsEx.zip - By Chizl
clsExitWindowsEx.cls shows you the API to logoff, reboot, shutdown, and shutdown with power off. Full Demo Included.

This Code falls under the GNU General Public License

ChizlLinkSnag.zip - By Chizl
This (DLL VB Code) will show you how to use API to query a webpage, get all the links and build full links out of them, sort the links for you, and get all the meta tags from that page. Full Demo Included.

This Code falls under the GNU General Public License

VB Script (VBS)
Resizer.zip - By Chizl
I wrote this a very long time ago, around 1998, and suprisenly it still works.

I've changed it a few times over the years, but it's still supported by Microsoft IE. Use the install.vbs to install it, but what it basicly does is adds new menu options to your IE right click. Allowing you to resize the browser to validate sizes 640x480 up to 1600x1200. Very nice tool for web developers. It's all in VBS so you can look at it and check for yourself before running it, that it's not a virus.

Snapshot of what it looks like once installed.

This Code falls under the GNU General Public License

VBSL.zip - By Chizl
I wrote this a very long time ago, around 2003, and suprisenly it also still works.

This is a few methods I've build over the years to help me inside VBS. Basicly I've formed them together so they work like MFC in VC++. You include the VBS Library you want and you can use the methods within. Each Library is nothing more than another VBS full of methods.

Open the template.vbs and you will see how it works. Use Install.vbs to auto install it.

This Code falls under the GNU General Public License

T-SQL
Search Inside a File - By Chizl
From within SQL you can look to see if a file exists and if so, then open it, search it for specific text and get it back as a record set.

DBA Use only, this should not be used as standard transaction processing.

This Code falls under the GNU General Public License

Validate UNIQUEIDENTIFIER as VARCHAR - By Chizl
Ever have a GUID in a VARCHAR format and need to use it to query or update a table, but if the data is invalid, you get the error:
"Conversion failed when converting from a character string to uniqueidentifier."