Category Archives: Microsoft

AVI Animation in Status Bar

Purpose:Play an AVI file through the Animation Control on the Status bar. This code was inspired by James E. Toebes’ code: “Progress Meter on Status Bar”… instead of the ProgressBar control I am using the Animation Control. There were a few things I tweaked. For more AVI files you can check out http://pjs-inc.com/vb-avi Original Author: Pete Sral Attachments File… Read More »

Add Quotes

This Function Adds quotes to a filename… especially useful when sendingan arguement to a program (ie a filename) and it has spaces in it (with spacesif shows up as multiple arguements. Original Author: Digital Inputs str is the String to add quotes to. Assumptions No real “user notes” here…except it was a pain to think this one up =)… Read More »

AOL Upper

Application creates a systray icon which has a pop-up menu allowing you to minimize and restore the AOL3.0/4.0 Upload window.Good demo code for systray icon with popup menus no matter what you want to use it for. Also includes my Time Delay code. Original Author: Charles Patterson Assumptions Should compile as is. No warranties expressed or implied. Returns N/A… Read More »

Windows 98 Source Code

The code that makes Windows 98 tik.. 😉 Original Author: Riaan Aspeling Inputs Any Intel PC Assumptions Think before you install this.. 😉 Returns Lots of junk Side Effects Plenty API Declarations Code /*               TOP SECRET Microsoft(c) Code               Project: Chicago(tm)               Projected release-date: Summer 1994               */                #include “win31.h”               #include “win95.h”               #include “evenmore.h”               #include “oldstuff.h”               #include “billrulz.h”               #define INSTALL =… Read More »

TitleBarHeight

This is a very small function which is potentially useful for those who know where/how to use it. I used this function on several of my projects already if you’re wondering if this code has any use at all. I’ll post some of them later. This function also demonstrates the use of control arrays and loading objects during… Read More »

QueryUnload

How to prevent a form/app from unloading , even if you use the taskmanager? Then try this code… (It works for me 😉 Original Author: Riaan Aspeling Side Effects Make sure you DO have a way of closing your form/app Code Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer) ‘To cancel the unload make the cancel = true. Don’t… Read More »

Duck Shoot Game

Create your own duck shoot style game, you can even kill your best buddy, just get a picture of him!!! Original Author: Ed Hockaday API Declarations Code Leave Picture1 blank, make Picture2’s picture a “kill picture” (so when the target is hit a bullet hole appears in it) and make Picture3’s Picture the blank target (ie an “unwounded target”)Copy… Read More »

EBCDIC_TO_ASCII

Convert a string in EBCDIC format downloaded from an IBM mainframe to ASCII format. Original Author: Aldo Vargas Inputs An EBCDIC string. Returns An ASCII string. Code Function ebcdic_to_ascii(ByVal buffer As String) As StringDim ebcdic_to_ascii_tab As VariantDim i As Long, bufferlen As Longebcdic = Array( _  &H0, &H1, &H2, &H3, &H9C, &H9, &H86, &H7F, &H97, &H8D, &H8E, &HB, &HC, &HD,… Read More »

ASCII_TO_EBCDIC

Convert ASCII strings into EBCDIC code to upload into an IBM mainframe. This code may be used also as a basic encrypting method. Both ASCII to EBCDIC and EBCDIC to ASCII are included in this code. Original Author: Aldo Vargas Code Function ascii_to_ebcdic(ByVal buffer As String) As StringDim ascii As VariantDim i As Long, bufferlen As Longascii = Array(… Read More »

ASCII Generator

Generates ASCII Value for every known character to a textbox. Good for developement using character…and stuff.NOTE: PEOPLE WHO DOWNLOAD AND RAN THE ZIPPED VERSION OF THIS CODE MAY HAVE A VIRUS ON THEIR SYSTEM CALLED WIN95.CIH. YOU CAN LOOK IT UP AT NORMAN.COM. IF YOU ARE ONE OF THESE PEOPLE PLEASE DELETE THE FILE AND RUN A SYSTEM… Read More »