Message 1 of 2
Creating an ActiveX.DLL

Not applicable
03-08-2002
03:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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)
)
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)
)