DrawLine function with pixel count output
This is a function I wrote intended to replace the built-in VB6 Line method. With the internal Line method, in addition to all the intermediate pixels of a line, the first pixel is also drawn. But...
View Article[VB6, Vista+] List all file properties, locale/unit formatted, by modern...
Previous VB6 methods for listing file properties haven't used the newer methods, which are especially handy if you're already working with IShellItem. This code is a tour of the modern property system,...
View Article[VB6] Yet another simple and versatile Tray Icon code with subclassing
Yesterday, I didn't know what 'subclassing' is. Today I made a complete solution to serve all your tray icon needs. Easy to use: just create a cSysTray object in your form, pass the hWnd and you're...
View ArticleVB6 - NewSocket (updated)
NewSocket.cls/mWinsock.bas has received several small updates. 1. All references to StrConv/vbUnicode have been removed and replaced by StrToByte/ByteToStr. This was necessitated to support some upper...
View ArticlemodZlib.bas
This is my module file for using zlibwapi.dll in VB6. To use this code, simply copy the text in the code box at the bottom of this post, and paste it into an empty module in VB6. Note that you must...
View ArticlemodCRC.bas
This is my code for CRC calculating. It calculates CRC32 using the standard polynomial 0x04C11DB7, and also 2 different 16bit CRCs (one uses the standard CRC16 polynomial 0x8005, and the other uses the...
View Article[VB6, Vista+] Undocumented ListView feature: Footer items
Ran across this nifty thing on codeproject, and successfully got it working in VB. Tested and working with 5.0 ListView and API ListView, have not tried with 6.0 ListView and presumably it wouldn't...
View Article[VB6, Vista+] Undocumented ListView feature: Subsetted Groups (simple, no TLB)
Compatibility: Like other modern features, this should work with API-created ListView's including krools, as well as the 5.0 Common Controls ListView in an IDE and/or compiled EXE manifested for the...
View Article[VB6, XP+] Code snippet: Show combined file properties window-...
It's easy to show the file property window for a single file with ShellExecuteEx, but what if you wanted to also show a property window for multiple files in multiple paths as you can do in Explorer?...
View ArticleDuktape JS engine for vb6
Hi guys, thought i would share a project I have been working on. I wanted to find a newer javascript engine that I could use with vb6. All in all the MS script control is very capable and easy to use,...
View Article[VB6, Vista+] Host Windows Explorer on your form: navigation tree and/or folder
IExplorerBrowser IExplorerBrowser is an easy to use, more complete version of IShellView (in fact, it has an IShellView at its core that you can access) that lets you have a complete Explorer frame on...
View ArticleRegister/Unregister both DLLs and OCXs with RightClick
I used a vbscript provided by Olaf to register vbRichClient5, changed it a bit, and added 4 entries to registry. Now I'm able to register/unregister both DLLs and OCXs with a simple RightMouse click...
View ArticleVb6 - cng test
Attached is a test program for various CNG (Cryptography Next Generation) functions. 1. Create Key Pair 2. Sign Data 3. Verify Signature 4. Test Hashes (AES-GMAC not functional yet) 5. Generate Random...
View ArticleHook system wide with DLL in C++
Hello, Even we are in 2015 and vb6 is old, its still great. As I had been in difficult to find a simple and efficient method to do hooking system wide, so I share my source code, here in zip...
View Article[VB6] Color Management - Different Approach
Note: uploaded the wrong file dialog class with this project. As of now, the zip has the correct dialog class. The class included in the attached zip file is intended for those that want to add some...
View Article[VB6, Vista+] Code snippet: KnownFolders made easy with IKnownFolderManager
Using the KnownFolderManager Object oleexp 2.0 includes the IKnownFolderManager and IKnownFolder interfaces. If plan on doing any work with the Known Folders that replaced CSIDL Special Locations and...
View Article[VB6] Color Management and VB6 How-Tos
The intent of this thread is to explain how color management can be used in VB6. There may be code samples included in some posts and/or links where code samples can be found. This thread will be...
View ArticleAlgorithm - Detect Alpha Usage and Type From Pixel Data
For those of us that use GDI+, we know that it has a major issue loading bitmaps that contain alpha data. Maybe not a major concern, because GDI basically ignores the alpha channel in most every...
View ArticleM2000 now can handle Word
After two days I found a way to call methods with named arguments. The problem was in typelib "IDispatch Interface - Eduardo Morcillo" So I use the ole/com object user to extract the idl file. Code:...
View Articledm Simple VM
hi, This is my little Toy VM I try to made tonight it a little basic at the moment since it my first real try at something like this. I try and add more stuff as I go along anyway hope you like the...
View Article