Quantcast
Browsing all 1528 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

VB6 - Add to Hash using CNG

There are times when one needs to add to an existing hash, such as when calculating the HMAC hashes for TLS. With CAPI, the hash function could be easily split into separate functions; create the hash,...

View Article


[VB6] - Fireworks.

Code: Option Explicit Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundW" (ByVal lpszName As Long, ByVal hModule As Long, ByVal dwFlags As Long) As Long Private Const SND_ASYNC =...

View Article


[VB6] - Work with the pointers.

Often there are situations when you need to get data having only the address (for example, in WndProc, HookProc). Usually, simply copy the data via CopyMemory the structure after changing data and copy...

View Article

Image may be NSFW.
Clik here to view.

[VB6] - Get information about memory usage.

Code: Option Explicit   Private Const MAX_PATH = 260   Private Type PROCESS_MEMORY_COUNTERS     cb                          As Long     PageFaultCount              As Long     PeakWorkingSetSize...

View Article

Image may be NSFW.
Clik here to view.

[VB6] Simple, basic subclassing tutorial using the easier SetWindowSubclass...

So there's quite a few posts about specific questions where code like this is shown, but I really thought it would be better to have a subclassing tutorial type codebank entry for it to make it more...

View Article


Here's some code for calculating hashes.

It works with MD2, MD4, MD5, SHA1, SHA2-256, SHA2-384, and SHA2-512. Put the below code in a module (BAS file). It does everything that CAPICOM does regarding hashes, but without using any ActiveX DLL...

View Article

Code Snippet: Getting folder settings with SHGetSettings

So there's not a single result for SHGetSettings, and this is an odd function, so I just wanted to post a working method of using it. SHGetSetSettings isn't supported above XP, so even if it's still...

View Article

Image may be NSFW.
Clik here to view.

VB6 Threading, using the small DirectCOM.dll-HelperLib

Just for those who want to try a proven approach, which works reliably (and comparably simple) in spanning up STAs (Single-Threaded-Apartments) for over 10 years now (one can use his own VB6-compiled...

View Article


Image may be NSFW.
Clik here to view.

Register/Unregister both DLLs and OCXs with RightClick

I used a vbscript provided by Olaf to register vbRichClient5, changed it a bit, and added 4 entries to registry. Now I'm able to register/unregister both DLLs and OCXs with a simple RightMouse click...

View Article


Image may be NSFW.
Clik here to view.

[VB6] - Module for working with COM-Dll without registration.

Hello. I give my module for working with COM-DLL without registration in the registry. The module has several functions: GetAllCoclasses - returns to the list of classes and unique identifiers are...

View Article

Image may be NSFW.
Clik here to view.

VB6 Regfree Handling of AX-Plugin-Dlls per DirectCOM

One necessity, to make the handling of VB6-produced ActiveX-Dlls more easy, is the regfree loading of the Classes which are contained in the Plugin-Dlls. Once that is out of the way (we use...

View Article

Image may be NSFW.
Clik here to view.

[VB6] Reg-Free COM at runtime via Microsoft.Windows.ActCtx

One of the slick things Microsoft developed before they pulled the plug on VB development and threw everything behind .Net was registration-free COM. Sadly, the change in direction meant that they...

View Article

Image may be NSFW.
Clik here to view.

Transit Time Tester

Users sometimes want to know how accessible a certain site is and how long it takes to get to it. The "ping" command has traditionally been used for that, but there are problems using this utility. The...

View Article


DrawLine function with pixel count output

This is a function I wrote intended to replace the built-in VB6 Line method. With the internal Line method, in addition to all the intermediate pixels of a line, the first pixel is also drawn. But...

View Article

[VB6, Vista+] List all file properties, locale/unit formatted, by modern...

Previous VB6 methods for listing file properties haven't used the newer methods, which are especially handy if you're already working with IShellItem. This code is a tour of the modern property system,...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Yet another simple and versatile Tray Icon code with subclassing

Yesterday, I didn't know what 'subclassing' is. Today I made a complete solution to serve all your tray icon needs. Easy to use: just create a cSysTray object in your form, pass the hWnd and you're...

View Article

Image may be NSFW.
Clik here to view.

VB6 - NewSocket (updated)

NewSocket.cls/mWinsock.bas has received several small updates. 1. All references to StrConv/vbUnicode have been removed and replaced by StrToByte/ByteToStr. This was necessitated to support some upper...

View Article


Flexgrid mouseover event

Hello, Is there a way to display a popup message when the mouse is over a cell and update the message when the mouse moves to another cell?

View Article

modZlib.bas

This is my module file for using zlibwapi.dll in VB6. To use this code, simply copy the text in the code box at the bottom of this post, and paste it into an empty module in VB6. Note that you must...

View Article

modCRC.bas

This is my code for CRC calculating. It calculates CRC32 using the standard polynomial 0x04C11DB7, and also 2 different 16bit CRCs (one uses the standard CRC16 polynomial 0x8005, and the other uses the...

View Article
Browsing all 1528 articles
Browse latest View live