[VB6] Color surface and scatter charts with nice color maps
Dear all, As heavy user of Excel 2007, I'm happy with the quick analysis available through pivot table. Unfortunately the default layout for the contour graph and the need for a regular grid reduce...
View Article[VB6] PicSave - Simple SavePicture as GIF, PNG, JPEG
Sometimes you need a better SavePicture() function. Not a lot better, just one that can save in some compressed format instead of just BMP format. Like JPEG usually, or PNG. Well this one does that,...
View ArticleAnalog Clock example
Analog Clock is a program that demonstrates how to create a user control that displays a clock on a form in Visual Basic. This started as a quick example about rotating graphics I wrote a while ago and...
View ArticleSludge Tools - an old but, still interesting, and possibly useful project
Okay, how to start... A couple of years ago I tried to write my own adventure game using Hungry Software's Sludge scripting language. The tools that came with it were pretty good, but I felt it needed...
View Article[VB6] Code Snippet: Open a folder and select multiple files in Explorer
So lots of applications these days can open a folder and highlight the target file or files, but it's not something that I've seen done in VB6 for multiple files; I guess because few people are...
View ArticleCopy to Clipboard as Unicode and Html Form
Working for M2000 Interpreter I found this https://support.microsoft.com/en-us/kb/274326 For copy text to Html, but without using utf-8 (but works for english because utf-8 has one byte for English...
View Article[vb6]Yet Another CSV Parser
A fairly basic CSV parser, with a bit more user-control and a slight twist: Event driven by Record The parser does handle quoted field data and delimiters, carriage returns, and other non-printable...
View ArticleVB6 - Generate ECC Key DLL
Attached is a DLL program that generates an ECC (Elliptical Curve Cryptography) Key, and a sample program to utilize it. Each side in the exchange creates a Public/Private key, and sends the Public Key...
View ArticleGDI+ Workaround: ICONs
Major caveat: The following applies to Vista and lower. Windows 7 and above may have corrected some of these limitations. Since Vista is still an active operating system, you may be interested. Also,...
View Article[VB6] Look up Enum value names
We see this question as well as very similar ones every so often: "I want to be able to have users pick values by name from a list of Enum value names. Is there a way to do this without manually...
View ArticleFastSort 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 Article