[vb6] Patch Icon/Cursor Resource File Entries
The Resource Editor (ResEdit) in VB can corrupt icon/cursor group data. The corruption is minimal, except PNG-encoded related entries. This corruption should not harm anything except in rare scenarios....
View Article[VB6] WTSSendMessage
Here are a couple of simple demos. One just shows how to have a "MsgBox" that times out after some number of seconds if the user does not choose a button. The other shows how you might raise a "MsgBox"...
View ArticleFindResource and the IDE
Okay, I need a function that'll just tell me whether a file is in my resources or not. I'd prefer not to use LoadResData with error trapping because some of my resource files are somewhat large....
View Article[VB6] InkEdit with Windows SpellCheck
Here is an example of using an InkEdit control in "inkless mode" as a Unicode-aware RichTextBox. But on Windows 8 and later there is more! The program turns on the built-in Windows spellcheck...
View Article[VB6] IEnumVARIANT / For Each support without a typelib
In my own projects I use a typelib and a custom interface to do the same thing, (comparable to .NET and Olaf's examples) which might seem overly complex, so here's an example that gets the job done...
View Article[VB6] Registry Key Virtual type checker
Hi, this module allows to check whether Registry Key is: - Shared - Redirected - Usual - Symlink And to show a target of symlink. Note: Reflected type of keys (OS Vista and older only) are not...
View ArticleVB6 - InkEdit and SelText
The InkEdit Control has many useful features, but when it comes to SelText, it does not behave like a normal TextBox. When recovering the text from a multiline InkEdit box, each line is separated by a...
View Article[VB6] INI file class (unicode aware)
'Mainly intended for caching data beetween read-write operations 'Supports UTF-16 LE ini-files format 'Provides wide range of methods 'Doesn't support reading / saving commentary in ini file Based on...
View Article[VB6] Always Behind / Always at the Bottom / Bottommost
The following code will put a Form always behind/at the bottom of all top-level windows. This is accomplished by processing the WM_WINDOWPOSCHANGING message. Code: Option Explicit 'In a standard...
View ArticleVB6 - Activating Hyperlinks using InkEdit
I found code that activated Hyperlinks with VB6 and a RichTextBox. If was far more complex than I wanted because it used subclassing. So I converted it to use an InkEdit box without subclassing. The...
View Article[vb6] Resource Image Viewer/Extraction
A tool I developed to help with another project I'm working on. The tool worked well and decided to pretty it up and share it. This is similar to your typical resource-hacker, but limited in scope to...
View ArticleVB6 - Sample Tray Activation
Attached is a sample program that uses a Tray Icon to activate a program. It uses dilettante's "NotifyIcon" program. http://www.vbforums.com/showthread.p...ght=notifyicon I have left his explanations...
View Article[VB6] Registry Hives Enumerator
This is very specific, but maybe will be useful for some registry guy :) In short: if you need to build a ton of nested loops for: just say, you have a task to enumerate: 1) several keys 2) in the same...
View ArticleVB6 - Very simple CoreAudio Demo (vbRichClient5)
Olaf wrote a wonderful VB6 RC5-CoreAudio-Demo, which is very beautiful and full-featured. I simplified it into a very simple Demo for beginners to learn. Attached Images Attached Files...
View Article[VB6] Detect if process is hung
It's a console application based on IsHungAppWindow API. Syntax: FreezeDetector.exe [opt_Filters] Filters: "IMAGENAME eq [Process name]" "PID eq [Process ID]" Note: All filters should be quoted...
View ArticleXML Parser (written entirely on VB6)
Originally written by: Jason Thorn (Fork by Alex Dragokas) There are 2 projects: 1) GUI (activeX dll based) compile vbXml-browser\Browser\Browser.vbg Required: MSCOMCTL.OCX 2) Simple app (debug. window...
View ArticleCode for working with Unsigned Shorts
In VB6, the Integer data type is equivalent to a Short (signed short) in C. Now when you encounter a UShort (unsigned short) in a file or in a structure returned from a DLL call, what do you do? You...
View ArticleVB6 - Simple Hash Program
Attached is a program to calculate the various hash values for a string or a binary file. This can be useful if you are downloading an executable file (.exe/.dll etc) and the author has provided a hash...
View ArticleCode for speed testing memory copy
Here's my code for testing the speed of various memory copy functions. The value printed by the print function after each 100 iterations of the function being tested is the average time (in...
View ArticleVB6 - User SID/Path
I needed a value that was unique to the current logged in user, so what is more unique than the User SID (User Security ID). Using the attached code, I found the SID: Buffer: 70 70 27 00 00 00 00 00 01...
View Article