What’s the deal with [ComVisible] default and public classes COM exposure?

The trick is you can also add this attribute at assembly level (in AssemblyInfo.cs). If you specify [assembly: ComVisible(true)] (or don’t specify that at assembly level and so have the same effect by default) then all the public classes and interfaces and public methods thereof become COM-visible by default. You could just as well set … Read more

Is there any point in specifying a Guid when using ComVisible(false)?

Having [assembly: ComVisible(false)] and [assembly: Guid(“…”)] at the same time makes perfect sense in certain cases. You start with an empty assembly and will perhaps want to expose something from it to COM. So you mark the assembly as not ComVisible and later mark the entities to expose as ComVisible. That is why the GUID … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)