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

RC5 Sqlite Like Adodb.Connection/Adodb.RecordSet(WithOut Reg Com Dll)

Code: Sub TestSqliteComDll()     Dim Cnn As cConnection     Set Cnn = New_cConnection     MsgBox Cnn.Version End Sub Code: Option Explicit '免注册加载DLL- ''COM DLL可以放在当前目录或SysWOW64就能引用成功,...

View Article


Image may be NSFW.
Clik here to view.

GMail Using OAuth 2.0

Hello friends, Ive seen several posts recently with concerns about google disabling username/password gmail useage from 'less secure apps'. Ive been working with OAuth alot in other projects so Im...

View Article


Image may be NSFW.
Clik here to view.

PNG with alpha channel into standard VB6 image control

Ok, I developed this in another thread, with the help of several other members (LaVolpe, Dilettante, Wqweto, Schmidt, & The Trick). All it does is read a standard RGBA type (32bpp) PNG file and...

View Article

[VB6/VBA] Pure VB6 implementation of SHA-224, SHA-256, HMAC-SHA224 and...

Deliberately does not use any API calls so is not the sharpest tool in the shed Code: '--- mdSHA2.bas Option Explicit DefObj A-Z Private PowerOf2(0 To 31)  As Long Private Function LShift(ByVal lX As...

View Article

UDT to String and Vice-Versa

This occasionally comes up when we need to get a UDT into a String, and back again. We may want to do this for inter-process communications, or maybe to easily get it into a Variant or Collection, or...

View Article


Microsoft hardening DCOM, forcing packet integrity on March 14, 2023

DCOM = Distributed Com Object Model Update Release Behavior Change June 8, 2021 Hardening changes disabled by default, but with ability to enable them using a register key. June 14, 2022 Hardening...

View Article

select case send data

client side Code: Private Sub sckClient_DataArrival(ByVal bytesTotal As Long)     Dim strData As String, strPackets() As String     Dim strTrunc As String, bolTrunc As Boolean     Dim lonLoop As Long,...

View Article

Image may be NSFW.
Clik here to view.

Arrays in Far Memory

Ok, this is an idea I've been playing around with, inspired by some work by Dilettante and The Trick. And much thanks goes out to both of them. My idea was to use those concepts and create a class that...

View Article


Image may be NSFW.
Clik here to view.

Encrypted File Transfer

Attached are sample programs that facilitate sending a file over the WAN (Wide Area Network) fully encrypted. Transferring a file unencrypted over the Internet using SimpleSock is usually quite...

View Article


[VB6/VBA] SHA-3 pure VB implementation incl. HMAC

This mdSha3.bas module includes CryptoSha3 function that can be used to calculate SHA-3 hash in all bit-sizes: SHA3-224, SHA3-256, SHA3-384 and SHA3-512. The module also includes CryptoKeccak function...

View Article

Here's how to reference the same variable in 2 different ways.

This is similar to the way a union works in C or C++. It works by applying custom settings to a SAFEARRAY structure (aka safe array descriptor). I've done a lot of commenting on the code, so others can...

View Article

Image may be NSFW.
Clik here to view.

Large arrays (when arrays don't fit in memory)

Sometimes we need to store a lot of data in memory, but we find two restrictions: 1) VB6, as any 32 bits process, has a limit of using 2 GB RAM. It can be extended to 4 GB setting LARGEADDRESSAWARE but...

View Article

[VB6/VBA] X25519 for ECDH key exchange and Ed25519 for EdDSA signatures

This mdCurve25519.bas module implements X25519 key exchange and Ed25519 signatures in pure VB6. EdDSA signatures use SHA-512 hashes internally so you'll need mdSha512.bas from this thread included in...

View Article


Image may be NSFW.
Clik here to view.

[VB6/VBA7] CNamespaceWalk (Using the INamespaceWalk interface)

This project is intended to demonstrate how to implement the INamespaceWalk interface. It uses lightweight COM and no .tlb is required and no VTable subclassing is used. This means that the source...

View Article

Image may be NSFW.
Clik here to view.

Add-In to change the "default" size of code windows while in IDE design mode

Ok, this is a VB6 Add-In to change the default size of Code windows. On my computer, I always delete the VBW files. So, when I open code windows, their width is some "default" size. On my computer,...

View Article


Image may be NSFW.
Clik here to view.

(VB6) ColorDialog: a color dialog replacement

The Windows color dialog seems a bit outdated to me. Here is a new one that can replace it. Current limitations are: since it is a dialog that has some captions, it needs translations to different...

View Article

Clear Immediate Window

This has probably been posted before, but I thought I'd do "my version" of this. Compile the Add-In and save the DLL to wherever your Add-Ins are, and then load it (via your Add-Ins Manager) and you'll...

View Article


Image may be NSFW.
Clik here to view.

(VB6) Virtual LED control

It simulates a LED (light emitting diode). Properties: Color: Red/Green/yellow/Blue/White/Custom (the Custom color is defined from properties BorderColor, ColorOn and ColorOff) State: On/Off/Blinking...

View Article

Image may be NSFW.
Clik here to view.

Clear Immediate Window (Add-In)

EDIT1: I added the option to "Clear" to the Immediate Window's context menu. It's probably more useful there than as a separate button anyway. This has probably been posted before, but I thought I'd do...

View Article

Image may be NSFW.
Clik here to view.

Open module with text editor from Project Window's context menu (Add-In)

This is an add-in I've wanted for a long time. It opens modules (or the VBP file if that's what you're on) from the context menus within the VB6 IDE's Project Explorer Window. Just compile it, save the...

View Article
Browsing all 1528 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>