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

Image may be NSFW.
Clik here to view.

VB6 Databinding with the DataGrid (used as a Read-Only RowPicker)

Not much to comment, other than what the Title says. More common in such scenarios are perhaps MS-HFlexGrids, but those don't support real DataBinding and are slower, because the Recordset-Data has to...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Enhanced Tray Message w/ custom ToolTip icon and feedback, w/o...

IUserNotification2 Interface IUserNotification provided a very simple way to show a notification in the tray area, but it was very limited in terms of interaction. Vista introduced IUserNotification2...

View Article


Image may be NSFW.
Clik here to view.

[VB6] ProcCounters & ProcMonitor - instrument your application

An issue many of us deal with is trying different approaches in an application in order to improve performance. Often enough these are big changes, for example ADO Client vs. Server cursor location or...

View Article

Image may be NSFW.
Clik here to view.

[VB6] - Editing AVI-files without recompression.

Hello everyone. This is example of work with AVI-files (cut section and save it to a file). Everything is commented: Code: Option Explicit . . . ДЕКЛАРАЦИИ . . . Dim currentFile As String          '...

View Article

Image may be NSFW.
Clik here to view.

[VB6] - 3D sound using DirectSound.

Hello everyone. The example shows an implementation of 3D sound, every object in three-dimensional space "assigned" the sound. To work need a library dx8vb.dll. Shift / Ctrl - deceleration of 10 times,...

View Article


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
Browsing all 1473 articles
Browse latest View live