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

Copy to Clipboard as Unicode and Html Form

Working for M2000 Interpreter I found this https://support.microsoft.com/en-us/kb/274326 For copy text to Html, but without using utf-8 (but works for english because utf-8 has one byte for English...

View Article


Image may be NSFW.
Clik here to view.

[vb6]Yet Another CSV Parser

A fairly basic CSV parser, with a bit more user-control and a slight twist: Event driven by Record The parser does handle quoted field data and delimiters, carriage returns, and other non-printable...

View Article


Image may be NSFW.
Clik here to view.

VB6 - Generate ECC Key DLL

Attached is a DLL program that generates an ECC (Elliptical Curve Cryptography) Key, and a sample program to utilize it. Each side in the exchange creates a Public/Private key, and sends the Public Key...

View Article

Image may be NSFW.
Clik here to view.

GDI+ Workaround: ICONs

Major caveat: The noted limitations apply to at least Vista and lower. Windows 7 and above may have corrected some of these limitations. Since Vista is still an active operating system, you may be...

View Article

Image may be NSFW.
Clik here to view.

[VB6] Look up Enum value names

We see this question as well as very similar ones every so often: "I want to be able to have users pick values by name from a list of Enum value names. Is there a way to do this without manually...

View Article


FastSort for bytes

Here's my Histogram based FastSort function for bytes. Unlike normal Sort type algorithms, which require often many passes (the exact number depending on the exact arangement of numbers in the array)...

View Article

Image may be NSFW.
Clik here to view.

[VB6] - Store data to EXE.

Hello everyone! There are times when you want to save the data after completion of the program, but did not want to have external dependencies, registry entries, etc. However you can store the data in...

View Article

VB6 - Fast Sqr

Internal VB6 Sqr() function is very slow Here is my FastSqr() function N>=0 Code: Public Function FASTsqr(n As Double) As Double     Dim X      As Double     Dim oldX    As Double     If n Then...

View Article


Image may be NSFW.
Clik here to view.

VB6 Simple FTP-Client (PASV-mode, based on Winsock.ocx)

As the title says - not much to comment - other than that it's a quite old code-base (though slightly revised now - and still working with most FTP-Servers). Source-Code: FTP-revised2.zip ScreenShot:...

View Article


Image may be NSFW.
Clik here to view.

[VB6] - Wave steganography.

Hi everyone! Today i want to talk about the cryptography. I've made the example of using the special cryptography - the steganography. This method hides the fact of encryption of the data. There are...

View Article

BSTR2LPSTR and LPSTR2BSTR conversions for VB6

The problem with a number of API functions is that they return strings as LPSTR. An LPSTR is a pointer to a string in memory that is terminated with null (0x00 byte), and the strings themselves are in...

View Article

[vb6] PropertyBag, Persisting, Cloning for UserControls

With VB, we have the use of the PropertyBag object. It is used in usercontrols to persist settings and can be used in public classes (within DLL,OCX projects) that have the Persistable property set to...

View Article

Image may be NSFW.
Clik here to view.

[VB6] Lob.com Address Verification

There are all kinds of web services out there. Most have abandoned the troublesome SOAP, but the REST-like API world remains a little bit of a "wild west" and each one may require different fiddling....

View Article


Image may be NSFW.
Clik here to view.

[vb6] Scale + Rotation Routine for Sizing Objects

The two routines shown below can be used by anyone that needs one of the following results: 1. Scale an object to a destination object to include rotation & proportional scaling. Fit rotated bounds...

View Article

VB6 - Storing Passwords

I finally found a good use for the background manipulation that VB performs on strings. Normally, a password would be saved in the registry as an encrypted or hashed value in Binary format. The...

View Article


Here's a simple function for calculating the GCD of any 2 positive integers.

This can be useful component of a number of other algorithms. Code: Private Function GetGCD(ByVal a As Long, ByVal b As Long) As Long Dim r As Long Dim q As Long ' Make sure that a >= b, by XOR...

View Article

Simple method for checking primality of number

This checks every positive integer between 2 and the Floor of the Squareroot of the number to be checked, to see if the Mod = 0. If it equals zero, then it is not prime. If it never is zero, then it is...

View Article


Binary Code Thunk Experiment

Here's the VB6 code for Form1 Code: Private Declare Function CallProc Lib "user32.dll" Alias "CallWindowProcA" (ByVal ProcAddr As Long, ByVal Param1 As Long, ByVal Param2 As Long, ByVal Param3 As Long,...

View Article

Image may be NSFW.
Clik here to view.

[VB6] Get extended details about Explorer windows by getting their IFolderView

IShellWindows / IFolderView There's some basic ways of working with open Explorer windows, but if you really want to do some intensive work with them, the IShellWindows interface lets you get a...

View Article

Image may be NSFW.
Clik here to view.

[VB6] - Inline assembler Add-in.

Hello everyone! There are cases where you need to use the assembly code in your VB6 projects. Usually this is done using a previously-compiled code that is placed into the the memory. Then this code is...

View Article
Browsing all 1463 articles
Browse latest View live


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