PDA

Click to See Complete Forum and Search --> : How to build an ActiveX DLL in Delphi?


Yonatan
Jul 23rd, 2001, 08:49 AM
I know this is a weird question :rolleyes:
Does anyone have Delphi? I don't, so I can't check.
How do you build an ActiveX DLL in Delphi?
I'd like an example of a simple DLL with one class that contains one method, one property and one event, like the following but in Delphi, and also, all the steps required (how to create the project, etc.)Option Explicit

Event MyEvent(ByVal TheX As Long)

Dim m_X As Long

Public Property Get X() As Long
X = m_X
End Property

Public Property Let X(ByVal NewX As Long)
m_X = NewX
End Property

Public Sub DoSomething()
RaiseEvent MyEvent(m_X)
End Sub Thanks in advance :rolleyes: