Determining when two numeric ranges overlap
The code below will report True if 2 ranges (x1-x2 & y1-y2) overlap. You can put the two range parameters in either ascending or descending order. The function will rearrange them to ascending...
View ArticleMulti Bit Manipulation Class
This submission is a class that handles bit manipulation in the following VB data types: Byte, Integer, Long, Single, Double, Currency, Date and One dimensional Long Arrays. (These are VarTypes 2 thru...
View Article[VB6] ColorList - Another example of a custom dropdown list control
ColorList: A "dropdown list box" control for choosing among a list of predefined colors. This is a sort of drop-down list box written in VB6 that accepts a series of color text/value pairs. Users may...
View ArticleStatistics in VB6
Alright, I'm embarking on this endeavor as one of those "spare time" projects. I've long thought that there should be a good VB6 open-source program for doing various statistical analyses, and I've...
View Article[VB6] Port for use DX9 in VB6.
Port and some examples: https://yadi.sk/d/2L5Yh8Yo39dfnY The source of dx_vb.dll (C++ 2008): https://yadi.sk/d/aggh01cn39dg5S The source of d3dx_sc.dll (C++ 2008): https://yadi.sk/d/Y9FOQIKB39dgWP To...
View Article[VB6] SHFolderDlg class: BrowseForFolder
A VB6 Class with one Method: BrowseForFolder() It raises a Shell dialog for browsing to a folder. You can specify the "browse root" as well as an optional StartPath under that for the dialog to show...
View Article[VB6, Vista+] Core Audio - Monitor for disabled/active, default, and property...
Monitoring audio hardware for changes At first glance, the IMMNotificationClient interface looks like it's simple and straightforward. And in the IDE it is, but it turns out when compiled all normal...
View Article[VB6] ADO Recordset data to custom XML
This demo uses SAX to write an XML document in a custom format. Even though an ADO Recordset.Save method can write XML output to disk, this uses a proprietary serialization schema your program has no...
View Article[VB6] OWM: How lean is my program?
A tool meant to help answer the question "How lean is my program?" OWM runs a specified program and samples its performance until completion. Then the final measurements are displayed, and may...
View ArticleMulti-Monitor Routines (and "Better" routines even for single monitor systems)
Well, I recently helped someone solve the problem of centering a form on a secondary monitor. At that time, I had the necessary routines, but they weren't cleaned up as much as I'd like. And a couple...
View ArticlevbRichClient5 SQLite Database Definition & Creation Helper Classes
This is some older code of mine that I've just updated to work with vbRichClient5 and to support Serialization/Deserialization. It may even have some bug fixes over the last publicly available version...
View Article[VB6] List and view Alternate Data Streams using GetFileInformationByHandleEx
So I was playing around with this last night and thought it would make a good demo, since while it seems like a single API would be straightforward it turns out this is fairly complex. Alternate Data...
View ArticleUnicode aware VB6 functions replacement
Hi, here is W replacement for several native VB6 functions / properties: - Dir -> DirW() - MkDir -> MkDirW() - Environ -> EnvironW() - App.Path -> AppPathW() - App.ExeName ->...
View ArticleHere's a better way to generate random nums than using Rnd
Using Rnd always gives you the same set of numbers, whenever you start the program. Even if you use Randomize first to set a random number seed at the start of the program, it will eventually cycle...
View Article[VB6] Convert CSV to Excel Using ADO
A piece of code I thought might be useful to some. Caveat first... Won't be the ideal solution for everyone. Having Microsoft Excel on the computer is not a requirement. Including an ADO reference is....
View Article[VB6] VB6.tlb - Passing a ParamArray without Copying
The Issue: How do you access a ParamArray, and pass it to another function, without copying it. The Answer: Pointer magic. ParamArrays are really just a Variant Array - managed by the runtime. For...
View ArticlePossible fix to the improved random generator technique I previously described
In this thread http://www.vbforums.com/showthread.p...than-using-Rnd I mentioned gave a description of how to use CryptGenRandom to generate completely secure random numbers. However one person there...
View Article[VB6] FIRENZE LABEL - label control with so many functions
FIRENZE LABEL version 1.1.1 last actualization: 26.3.2017 Created by Martin Vartiak, powered by Cairo Graphics and vbRichClient-Framework. LICENSE: http://creativecommons.org/licenses/...1.0/fi/deed.en...
View ArticleFontAwesome-SVG-Resources (per vbRichClient5)
Posted, due to a request in this related thread here (the nice Firenze-Label-Project by porkynet): http://www.vbforums.com/showthread.p...many-functions Those who are doing some Web-Development...
View Article[VB6] Manifest Creator II
This is the second version of this application. The previous version will no longer be maintained. The project simply creates application-manifests that can be written to disk, clipboard, or VB...
View Article