I have successfully been able to run my own .Net code by following the steps posted here Execute .NET 3.0 code from Office 2003
Is there a way to use the standard .Net libraries without having to write a wrapper? This way we can avoid having to register and install a custom DLL into the GAC on the client's machine.
I've found tlb files already in the C:\Windows\Microsof.NET\Framework folders, and have been able to add a reference to mscorlib.dll. Looking at the documentation for RijndaelManaged, this class appears to be COM visible.
I am able to create an instance, but as soon as I try and work with it, I get errors (e.g. "Type mismatch").
Sub Macro1()
Dim aesImplementation As New RijndaelManaged
Set key = aesImplementation.GenerateKey()
Set iv = aesImplementation.GenerateIV()
End Sub
I am willing to accept any hacks you have to offer!