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

Is there an equivalent to COM on *nix systems ? If not, what was the *nix approach to re-usability?

The Unix model is built around the idea of lightweight processes that communicate with each other, through sockets, pipes, signals, and command lines. Historically, Unix didn’t have threads (the POSIX thread model is only about 10 years old IIRC), but processes on Unix have always been much cheaper than on Windows, so it was more … Read more

What is the difference between COM and OLE?

OLE = Object Linking and Embedding DDE = Dynamic Data Exchange COM = Component Object Model OLE: This is a method of linking parts of one document to parts of another. For example, having a PowerPoint slide with an Excel chart embedded into it. When the Excel spreadsheet is updated, the chart should update too. … Read more

How do I create an COM visible class in C#?

OK I found the solution and I’ll write it here for the common good. Start VS2010 as administrator. Open a class library project (exmaple – MyProject). Add a new interface to the project (see example below). Add a using System.Runtime.InteropServices; to the file Add the attributes InterfaceType, Guid to the interface. You can generate a … Read more

What is difference between RegAsm.exe and regsvr32? How to generate a tlb file using regsvr32?

regsvr32 will load the library and try to call the DllRegisterServer() from that library. It doesn’t care what DllRegisterServer() actually does – it just calls that function and checks the returned value. You use it to register COM servers in unmanaged DLLs. It can’t generate a .tlb file. regasm will register a COM-exposed .NET assembly … Read more

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