FastSort for bytes
Here's my Histogram based FastSort function for bytes. Unlike normal Sort type algorithms, which require often many passes (the exact number depending on the exact arangement of numbers in the array)...
View Article[VB6] - Store data to EXE.
Hello everyone! There are times when you want to save the data after completion of the program, but did not want to have external dependencies, registry entries, etc. However you can store the data in...
View ArticleVB6 - Fast Sqr
Internal VB6 Sqr() function is very slow Here is my FastSqr() function N>=0 Code: Public Function FASTsqr(n As Double) As Double   Dim X   As Double   Dim oldX  As Double   If n Then...
View ArticleVB6 Simple FTP-Client (PASV-mode, based on Winsock.ocx)
As the title says - not much to comment - other than that it's a quite old code-base (though slightly revised now - and still working with most FTP-Servers). Source-Code: FTP-revised2.zip ScreenShot:...
View Article[VB6] - Wave steganography.
Hi everyone! Today i want to talk about the cryptography. I've made the example of using the special cryptography - the steganography. This method hides the fact of encryption of the data. There are...
View ArticleBSTR2LPSTR and LPSTR2BSTR conversions for VB6
The problem with a number of API functions is that they return strings as LPSTR. An LPSTR is a pointer to a string in memory that is terminated with null (0x00 byte), and the strings themselves are in...
View Article[vb6] PropertyBag, Persisting, Cloning for UserControls
With VB, we have the use of the PropertyBag object. It is used in usercontrols to persist settings and can be used in public classes (within DLL,OCX projects) that have the Persistable property set to...
View Article[VB6] Lob.com Address Verification
There are all kinds of web services out there. Most have abandoned the troublesome SOAP, but the REST-like API world remains a little bit of a "wild west" and each one may require different fiddling....
View Article[vb6] Scale + Rotation Routine for Sizing Objects
The two routines shown below can be used by anyone that needs one of the following results: 1. Scale an object to a destination object to include rotation & proportional scaling. Fit rotated bounds...
View ArticleVB6 - Storing Passwords
I finally found a good use for the background manipulation that VB performs on strings. Normally, a password would be saved in the registry as an encrypted or hashed value in Binary format. The...
View ArticleHere's a simple function for calculating the GCD of any 2 positive integers.
This can be useful component of a number of other algorithms. Code: Private Function GetGCD(ByVal a As Long, ByVal b As Long) As Long Dim r As Long Dim q As Long ' Make sure that a >= b, by XOR...
View ArticleSimple method for checking primality of number
This checks every positive integer between 2 and the Floor of the Squareroot of the number to be checked, to see if the Mod = 0. If it equals zero, then it is not prime. If it never is zero, then it is...
View ArticleBinary Code Thunk Experiment
Here's the VB6 code for Form1 Code: Private Declare Function CallProc Lib "user32.dll" Alias "CallWindowProcA" (ByVal ProcAddr As Long, ByVal Param1 As Long, ByVal Param2 As Long, ByVal Param3 As Long,...
View Article[VB6] Get extended details about Explorer windows by getting their IFolderView
IShellWindows / IFolderView There's some basic ways of working with open Explorer windows, but if you really want to do some intensive work with them, the IShellWindows interface lets you get a...
View Article[VB6] - Inline assembler Add-in.
Hello everyone! There are cases where you need to use the assembly code in your VB6 projects. Usually this is done using a previously-compiled code that is placed into the the memory. Then this code is...
View ArticleVb6 - graph32
I was in need of a graphical representation of some data, so I dug up an old program and cleaned up the code. The attached example uses "Graph32.ocx" from Pinnacle. Some people are under the impression...
View Article[vbRichClient] TabStrip Control (Firefox-like)
Here is my take on a modern browser-like TabStrip, which incorporates all of the features found in such controls such as animated open and closing of tabs, drag and drop to re-arrange, etc. The...
View ArticleYFrameowrk - A framework that will shorter development time for data oriented...
Hello, I have been using this set of routines (YFramework) for almost 10 years now. I developed to shorted my development time for business apps that are for data oriented. There is not rocket science...
View Article[VB6] Code Snippet: Get file overlay (e.g. shortcut arrow), inc. customs like...
Everyone is familiar with the shortcut arrow-- this is an example of an overlay icon, a status indicator placed on top of another icon. Most existing VB file browser examples handle showing these by...
View Article[vb6] Compressing Multiple Property Values into a Long
A lot of verbiage for a couple of 1-line functions. This posting can be beneficial to usercontrol creators and anyone else that would like to reduce the number of variables that are used primarily for...
View Article