Returning data from ActiveX DLL - TechRepublic
General discussion
January 16, 2002 at 07:58 AM
jerryk

Returning data from ActiveX DLL

by jerryk . Updated 24 years, 4 months ago

I’m trying to take an EXE that has approximatey 35 forms in it, and break it down into ActiveX DLLs and ActiveX EXEs.

As an example, the main app would sometimes show a form where the user sees 10 command buttons numbered 1 to 10 – like the keys on the right side of your keyboard. The main app would then take the number pressed and use it.

I have created a DLL using this Number form and created a clsClass1. The necessary properties are TTop and LLeft (to know where to move the form onthe screen – Me.move LLeft, TTop). These properties have to be set by the main EXE.

When the user finishes pressing on of the command buttons (numbers), the DLL must convey to the main EXE which button was pressed.

I know the main EXE must set a reference to the new DLL so as to expose the clsClass1. I’ve read a lot about ‘RaiseEvent’s, Defining objects ‘WithEvents’, and ‘Implements clsClass1’. Putting everything together is my real problem.

Any ideas???

Thanx in advance.

Jerry K.

This discussion is locked

All Comments