I have been trying to create a Class Library that can be used by both VB.NET and Access 2003.
For VB.NET, the dll lets me view the properties and functions as expected. The problem is with Access.
I went through the documented process of creating a Com Callable Wrapper and created a tlb file. The process I went through to produce this was to create a .snk file, and run tlbexp, regasm and gacutil (with what I assume were the correct parameters).
I then opened Access, created a form and a button and in VBA added a reference to my class by browsing for the .tlb file. All ok so far and no errors reported.
I then created a new object based on my class (Dim newobj as new encryption.class). My class appeared in the dropdown list as expected.
However, when I try to work with the class, none of the properties or functions are available. I checked the Object Explorer and my class appears in the Library list but none of it's members are displayed.
The class I have created is to encrypt and decrypt strings.
Any suggestions would be appreciated.
For VB.NET, the dll lets me view the properties and functions as expected. The problem is with Access.
I went through the documented process of creating a Com Callable Wrapper and created a tlb file. The process I went through to produce this was to create a .snk file, and run tlbexp, regasm and gacutil (with what I assume were the correct parameters).
I then opened Access, created a form and a button and in VBA added a reference to my class by browsing for the .tlb file. All ok so far and no errors reported.
I then created a new object based on my class (Dim newobj as new encryption.class). My class appeared in the dropdown list as expected.
However, when I try to work with the class, none of the properties or functions are available. I checked the Object Explorer and my class appears in the Library list but none of it's members are displayed.
The class I have created is to encrypt and decrypt strings.
Any suggestions would be appreciated.