Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Browsing all 1507 articles
Browse latest View live

[VB6/VBA] Pure VB6 implementation of ChaCha20-Poly1305 authenticated encryption

mdChaCha20Poly1305.bas is a pure VB6 implementation of ChaCha20 stream cipher, Poly1305 hash for MAC and combining these finally we get the ChaCha20-Poly1305 AEAD implemented in less than 400 lines of...

View Article


[VB6/VBA] Pure VB6 implementation of MD5 hash for the grins :-))

md5.bas is a 120 lines of code implementation of MD5 message digest as specified in RFC 1321. Code: '--- md5.bas Option Explicit DefObj A-Z #Const HasPtrSafe = (VBA7 <> 0) Or (TWINBASIC <>...

View Article


Image may be NSFW.
Clik here to view.

Typelib to add LongPtr type to VB6 for universal codebases

VB6LongPtr.tlb - Add LongPtr to VB6 This is just a dead simple typedef but I didn't see anything like it readily available, so thought I'd post the one I made. While you can (and must) use compiler...

View Article

Image may be NSFW.
Clik here to view.

VB6 Cairo-Paths and Projections

The Demo shows, how to create Path-Objects via simple helper-functions (of return-type cCairoPath) - and how to "Append" and then "Stroke" these Paths via similar named methods on a cCairoContext. I...

View Article

Image may be NSFW.
Clik here to view.

VB6 Stock-Data-Rendering via RC6 cChart-Class

The Demo shows, how one can use the built-in cChart-HelperClass of the RC6, to "ease the pain" with: - correct handling of ChartArea-Offsets - rendering of x- and y-Axis-Ticks and -Texts at the correct...

View Article


[VB6/VBA] Pure VB6 implementation or SHA-1 hash

This mdSha1.bas is a pure VB6 implementation of the venerable SHA-1 message digest algorithm. Code: '--- mdSha1.bas Option Explicit DefObj A-Z #Const HasPtrSafe = (VBA7 <> 0) #Const HasOperators...

View Article

ADMIN please delete - My bad sorry.

posted here in error

View Article

API CallBacks Using an Object's Procedure

API CallBacks Using an Object's Procedure Attributions: Huge thanks goes out to The Trick, Wqweto, Dz32, Fafalone, and LaVolpe. They all provided insights, inspiration, and code toward what you see in...

View Article


Safer way to convert full ANSI strings

Thanks to wqweto, I found a faster and safer way to convert full ANSI strings to byte array. Code: Option Explicit Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As...

View Article


Call BAS Procedure By Address

This comes up occasionally, and it's probably been done before ... but I developed it for testing some other code I've been working on. So, I thought I'd post it. It's all fairly well outlined in the...

View Article

[VB6/VBA] Scrypt KDF implementation of RFC 7914

This mdScryptKdf.bas implements scrypt password-based key derivation function as described in RFC 7914. This module depends on mdSha2.bas for its PBKDF2-HMAC-SHA2 implementation (calls...

View Article

Image may be NSFW.
Clik here to view.

Add Related Documents

There's a slightly hidden feature in the VB6 IDE that allows you to attach "Related Documents" to your project. Until now, the only way to do it was to edit your VBP file with Notepad, and then add a...

View Article

Image may be NSFW.
Clik here to view.

Fast File Search Utility App Demo With Source

JPBFileFinder is a tool for quick and easy file searches on your computer. You can search any folder (optionally recursively) to find files based on properties such as name, extension, size,...

View Article


[VB6/twinBASIC] Code snippet: Close Explorer window by path

Here's a small demo of how to use IShellWindows and IWebBrowser2 to close an open Explorer window based on it's path. I wrote it to be compatible with VB6+oleexp and twinBASIC+tbShellLib (64-bit...

View Article

[VB6/VBA] BLAKE2 and BLAKE3 hash functions and MAC

These mdBlake2b.bas and mdBlake2s.bas modules provide BLAKE2b and BLAKE2s hash functions implementation as a streaming interface (Init/Update/Finalize) and byte-array + string convenience helpers which...

View Article


Image may be NSFW.
Clik here to view.

NewTab: tab control for VB6

Download from GitHub. This is a tab control based on previous control SSTabEx. This new control keeps backward compatibility with the original SSTab that came with VB6 and is mostly backward compatible...

View Article

Image may be NSFW.
Clik here to view.

UserControl DatePicker GDI/GDI+ VB6 (ucJLDTPicker)

UserControl DatePicker GDI/GDI+ VB6 ucJLDTPicker is a user control created to be used in modern forms, which can be adjusted to some current layouts with its multiple properties. This is its first...

View Article


Image may be NSFW.
Clik here to view.

Weather App

I wanted to put weather info on my screen saver so if i was laying in bed i could see what the weather was. So i made this small app as an exercize, alot more could be done with it. You will need to...

View Article

Simple FFT module

I wrote this FFT that you can put in a module file and use anywhere in your program. Code: Public Const Pi As Double = 3.14159265358979 Public Type Complex     Re As Double     Im As Double End Type...

View Article

[VB6/VBA] Argon2 KDF implementation for password hashing

This mdArgon2.bas module implements Argon2 memory-hard function for password hashing. Argon2 depends on BLAKE2b so you'll need to include mdBlake2b.bas module before using current Argon2 module. You...

View Article
Browsing all 1507 articles
Browse latest View live