FYI: Store many images as StdPicture without hitting the GDI objects limit
I recently had to store many images that are StdPicture objects. The problem is that each one create a new GDI object, and the (default) limit of max GDI objects is 1000. (It is set on the key...
View ArticleHelper functions to avoid running out of resources
A process has limited resources available. They can be of several kinds, here we cover GDI objects, RAM and Disk. If your program must be able to handle, or at least not to crash with huge amounts of...
View ArticleBinary files inside EXCEL VBA
This application converts any executable file to VBA source code that can be included as a '.bas' module in an EXCEL file. Once inserted into the EXCEL file, the VBA code can be used to completely...
View ArticleBinary metamorphosis
The VB6 applications shown here use the hexadecimal system to encode the binary content of an executable file. The point here is that one may compile an executable file that contains another executable...
View ArticleArray Information
Below is a follow-up for a discussion here on vbForums. Every array in VB is managed by VB through the use of a SFAEARRAY as defined here by Microsoft as part of Windows. Each array is assigned a...
View ArticleVB6 nestable UDT-based Node-Class with fast teardown
Not much to it, just a Demo for an UDT-based cNode-Class, which can be extended (by adding Fields to the Class-internal UDT). This Node-Class is "self-contained" (no extra-modules are needed)....
View Article[VB6] Event Tracing for Windows - Monitoring File Activity with ETW
VBEventTrace v1.0 Using Event Tracing for Windows in VB6 Event Tracing for Windows (ETW) is a notoriously complex and unfriendly API, but it's extremely powerful. It allows access to messages from the...
View ArticleWork with paths longer than MAX_PATH
Windows 10 allows to have paths > MAX_PATH (260 characters), but you'll have problems with VB and APIs. Here is a workaround: Code: Private Declare Function GetShortPathNameW Lib "kernel32" (ByVal...
View ArticleTextBox SpellCheck
It is a class module to apply a spell checker to a TextBox or RichTextBox, it does it through the SpellCheckerFactorys interface, it is available from Windows 8 and later. Although with some controls...
View ArticleVB6 ImageCaching and -Animation (using a single Resource-File for storage)
Just a Demo which applies the cGDIPlusCache-Class (as intended, as a Drop-In-Module). The original CodeBank-entry for cGDIPlusCache is here: https://www.vbforums.com/showthread....-cls-revisited...
View Article[VB6] Crossword Puzzle Constructor
This is a program i threw together to generate crosswords based on a word/clue list. You can then print out the generated puzzle on a printer or solve it from within the program. For those that haven't...
View Article[VB6] CSharedMemory - class for dynamic memory allocation in shared memory
This class provides dynamic memory allocation in shared memory like in a heap. https://github.com/thetrik/CSharedMemory
View Article[VB6] CWaveFile - class for working with WAVE-PCM files.
Hello everyone. This is a class which allows to work with WAVE-PCM multichannel files (open/create/save). You can play the channels or mix them. https://github.com/thetrik/CWaveFile
View ArticleReDimPreserve Two dimension array
Code: Public Sub ReDimPreserve(arrPreserve, ByVal end_row2&, ByVal end_col2&, Optional ByVal start_row2, Optional ByVal start_col2) 'funtion: to break the limitation that ReDim Preserve cannot...
View ArticleShagratt's VB6 IDE AddIns collection (Latest versions)
Hi Guys! I dont have plans to keep working on them so I'm releasing all my work on VB6 IDE Addins as a collection. They are all stable and I use all of them daily for my projects. AddIns included are...
View ArticleCreate Access 97 database with VB6
I would like to create an Access 97 database with VB6. Have gotten my code to work one time. But VB6 shut down before code was saved, and have been unable to recreate it. I am running Windows 10 and...
View ArticleSimpleSock Update
If you use SimpleSock or SimpleServer, I have found a more efficient and faster way to receive sockets when using a fixed record header. TLS 1.3 encrypted records for example use a fixed 5 byte header....
View ArticleAdd scroll bars to VB-Forms, PictureBoxes and UserControls
Steve McMahon (www.vbAccelerator.com) provides a Scrollbar class which can add scroll bars to VB-Forms, PictureBoxes and UserControls. But the subclass (SSUBTMR.DLL) used by this class is not IDE-Safe....
View ArticleEnvironment variable dumper
Put this code into Form1 of your project and run it. It will put automatically save a file called EnvironmentVariables.txt and then close. This text file contains the environment variables and their...
View Article