Referring a DLL function

prao

Registered User.
Local time
Today, 18:05
Joined
Apr 16, 2001
Messages
32
Hi All

I have DLL to encrypt and decrypt the password. I registered the DLL in registry using

regsvr32 EBServer.DLL

Then in my program I declared a variable of type Object. Then created the instance of the EBServer object and stored in the vairable.

Dim oPwd as Object
Set oPwd = CreateObject("EBServer")

Then I am trying to refer the function inside the DLL.

oPwd.Encrypt

But I am getting an error when I created the Object. That is in this line

Set oPwd = CreateObject("EBServer")

Error message is
"ActiveX component cant' create object"

Can somebody in this forum help me in solving the problem and tell me what mistake I am doing. This is first time I am doing this type of job.

Thanks
 
Try this:

Dim oPWD as EBServer
Set oPWD = New EBServer
 

Users who are viewing this thread

Back
Top Bottom