limited-user

COM Interop without regasm

我的梦境 提交于 2019-11-27 05:33:47
问题 I'm a limited user, and I need to write an Outlook macro that exposes a C# library in Outlook 2003 and 2007. I do not have any admin privilges at all, not even at install time, so I can't run RegAsm and I can't (I assume) write a managed add-in. Is there any way to call .Net code from VBA in this scenario, or are there any other solutions? This is for personal use only, so an ugly hack is perfectly acceptable (so long as it works) 回答1: I solved this by running regasm with the /regfile option,