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

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

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

Image may be NSFW.
Clik here to view.

[VB6, Vista+] Undocumented ListView feature: Footer items

Ran across this nifty thing on codeproject, and successfully got it working in VB. Tested and working with 5.0 ListView and API ListView (it will also work on krool's Common Control Replacement...

View Article


Image may be NSFW.
Clik here to view.

[VB6, Vista+] Undocumented ListView feature: Subsetted Groups (simple, no TLB)

Compatibility: Like other modern features, this should work with API-created ListView's including krools, as well as the 5.0 Common Controls ListView in an IDE and/or compiled EXE manifested for the...

View Article

Image may be NSFW.
Clik here to view.

[VB6, XP+] Code snippet: Show combined file properties window-...

It's easy to show the file property window for a single file with ShellExecuteEx, but what if you wanted to also show a property window for multiple files in multiple paths as you can do in Explorer?...

View Article

Duktape JS engine for vb6

Hi guys, thought i would share a project I have been working on. I wanted to find a newer javascript engine that I could use with vb6. All in all the MS script control is very capable and easy to use,...

View Article
Browsing all 1522 articles
Browse latest View live


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