Creating an ActiveX.DLL

Creating an ActiveX.DLL

Anonymous
Not applicable
199 Views
1 Reply
Message 1 of 2

Creating an ActiveX.DLL

Anonymous
Not applicable
How do I pass arguments to a Sub program written in a VB Class, compile as
an activex.dll. let say, something simple as.?

Sub MathAB(C as Integer, A As integer, B as Integer)
C=A+B
End sub

I wrote the following VisualLisp Routine, but it doesn't work, the MathAB
subroutine doesn't received the arguments.


(defun C:prueba ()
(vl-load-com)
(SETQ C 0)
(setq ui (vlax-create-object "PRUEBAC.CLASE1"))
(vlax-invoke-method ui 'mathAB 2.0 1.0 2.0)
(vlax-release-object ui)
(princ C)
)
0 Likes
200 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Tomas Osers wrote:

> How do I pass arguments to a Sub program written in a VB Class, compile as
> an activex.dll. let say, something simple as.?

Take a look at the topic VL/VB Data in the Programming section of
http://www.dotsoft.com.

Terry
0 Likes