README.md

December 5, 2022 ยท View on GitHub

Class Event Wrapper

Description

This is an example of how to use a "wrapper"

class to allow you to get access to the public

events of instanced objects from a module within

your program (instead of having to embed the

code within a form, which is bad practice).

More Info

A few weeks ago I submitted a class to handle

buffering of outputs to increase efficiency of

write-to-file operations of a program I was

working on. The class worked just fine, but

I noticed that you couldn't get access to the

events of the class from a module (which then

prevents you from taking advantage of the

object's inbuilt limit detection.

This was a real nuisance, so I wrapped up the

code in a DLL which could then be linked to and

all worked fine... except for a point raised by

TerriTop - marshalling data to and from the DLL.

This project is my take on a work-around for

using the objects within the same project and

still experiencing the benefit of using their

events (from a module).

Submitted On2005-07-07 03:20:02
ByAJ Hill
LevelBeginner
User Rating5.0 (25 globes from 5 users)
CompatibilityVB 6.0
CategoryObject Oriented Programming (OOP)
WorldVisual Basic
Archive FileClass_Even191018772005.zip