UnderSeven
asked on
How do I refernce objects from tlb library in my code using VB?
I have a tlb library which I've added to my project as an 'existing item'. I can object browse to some of the components and the one I would like to use.
If I object browse I can find it:
Class CustomerWebAssistant
Member of EncryptionSupport
then if I try to instantiate the class in my code:
Dim cwAssistant As New EncryptionSupport.Customer WebAssista nt
I get the error that it is undefined.
Please help
If I object browse I can find it:
Class CustomerWebAssistant
Member of EncryptionSupport
then if I try to instantiate the class in my code:
Dim cwAssistant As New EncryptionSupport.Customer
I get the error that it is undefined.
Please help
Did you add a reference to the file?
ASKER
I can't do an imports on it, says includes no public namespace or cannot be found.
Also I am already inheriting another class.
If I try to add it as a reference it states it is not a valid assembly or com component.
Also I am already inheriting another class.
If I try to add it as a reference it states it is not a valid assembly or com component.
ASKER
This tlb is actually used in legacy code using the following statements:
cwAssistant = Server.CreateObject("Cogsd ale.Encryp tion.Custo merWebAssi stant")
result = cwAssistant.getDecryptedVa lue(result , Session("KeysFileLocation" ))
but these do not work,it errors on the first one if I tried using those stating it cannot create the object.
cwAssistant = Server.CreateObject("Cogsd
result = cwAssistant.getDecryptedVa
but these do not work,it errors on the first one if I tried using those stating it cannot create the object.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
That did it.
That did it.