[VB6] Friend Callback Procedures
The attached project below demonstrates how to set up Friend procedures inside object modules (FRM, CLS, CTL, etc.) for Windows API callback purposes. The goal of such a technique is to keep as much...
View ArticleUsing FileSelector class to make a compact Open File dialog.
This example using the latest glist4 and fileselector class for a compact file loader. From setup menu we can change the sort type, the behavior, the performance (normal recursive 3 levels, recursive...
View ArticleWIA Loader and Saver class
This class allows you to load and save all kinds of image files, including PNG and TIF. It is requires WIA 2.0 which is a Microsoft created DLL file called wiaaut.dll. A complete description of the...
View ArticleSome code to calculate the Greatest Common Divisor
This code sample calculates the GCD of numbers A and B, using the Euclidean algorithm (as described at https://www.khanacademy.org/computin...dean-algorithm). Code: Private Function CalculateGCD(ByVal...
View ArticleA custom compact and resizable Open File/Save File/Folder Select.
This example using the latest glist4 and fileselector class for a compact file loader. From setup menu we can change the sort type, the behavior, the performance (normal recursive 3 levels, recursive...
View ArticleKingsoft Spreadsheet and VB6
Reading through the forums, there seems to be some confusion on how to create an Excel Spreadsheet using the Kingsoft Spreadsheet package via Automation with Visual Basic 6. Here is sample source code;...
View ArticleBF Interpreter - an interpreter for a minimalist programming language
Attached to this thread is an interpreter for a minimalist programming language called Brain***** designed by Urban Müller. It only has eight different commands. The interpreter I made for it can load...
View ArticleConnect Four/Four in a Row game
Here's a simple Connect Four game written in Microsoft Visual Basic 6.0. The game has the following options: -Set who plays first. (red or yellow) -Whether one of the players is the computer, and if...
View Article[VB6] Color Management with GDI+
Updates (see post #2 for bug descriptions): 31 Aug 14: Fixed JPG related GDI+ bug Higher quality images often have a color management profile (ICM/ICC) embedded into their file. These embedded profiles...
View Article[VB6] RSA Public Key Encryption via CNG
Now that Windows XP has joined earlier versions of Windows as unsupported software we can feel more free to move away from legacy technologies. Cryptography API: Next Generation is one of the new...
View Article[VB6] RSA Data Signing via CNG
One of the things we get in post-XP Windows is a new crypto library. This offers a number of small advantages such as being a lttle more "rational" from a usage standpoint (calls are somewhat more...
View Article[VB6, Vista+] SplitButtons
Now that more people are moving off Windows XP we can start using more of the new features added to Windows back in 2006. One of these is a funny control called a "Split Button" which is really a...
View ArticleHTML converter
hello all. I an new to the forum and I have very limited experience in VB. I am looking for the easiest way to convert an HTML table to other formats (csv, etc.) automatically. Any suggestions would be...
View Article[VB6] RLE8 Compression Algorithm for Bitmaps
Microsoft allows 8-bit bitmaps to be compressed using a somewhat simple, not terribly efficient, run length encoding (RLE). Strict rules apply, but is rather easy to encode/decode Quote: Originally...
View Article[VB6] RLE8 Compression Algorithm for Bitmaps (Updated)
Updated. Added another tweak that works pretty well. Post #2 describes additional tweaks that can be made. The tweak in this update was to attempt merging the scanline's final uncompressed and...
View Article[VB6, Vista+] Query Windows Search
Now that Windows XP is dead we can feel free to make wider use of new features of Windows introduced nearly 8 years ago. One of these that I see almost no use of by VB6 programmers is the ability to...
View Article[VB6, Vista+] Simple Task Dialog
I posted sample code using this class for raising simple Task Dialogs several times over the years, but I never gave it a CodeBank thread of its own. Task Dialogs Now that Windows XP is dead we can...
View ArticleNice Textboxes
Why some functions are so difficult to find. I would like to have some controls without the restrictions for using...this or that themes..manifests or other bad habits.. So i wrote some textboxes. All...
View Article[VB6] Color Management with GDI+ (updated 20 Sep 14)
Updates (see post #2 for bug descriptions): 20 Sep 14 :: Added patch for a specific case when GdipBitmapLockBits fails to lock image data :: Added support for JPGs where GDI+ won't return any ICC...
View Article[VB6] TaskDialogIndirect Simple Implementation
So I really liked the implementations of TaskDialog that I've seen, and wanted to take it a bit further. TaskDialogIndirect offers a far greater number of options: This is the first version; a basic...
View Article