May 2005 - Posts
A week ago, I blogged about how to register COM objects as LUA ( http://blogs.msdn.com/jaredpar/archive/2005/05/17/418780.aspx ). This is a follow up post, to show you how to alter your standard ATL registration code so that your DLL will register for
Read More...
Ran accross this paper that does a good job of examining the history of content distrbution. Couple of years old now so it leaves out such items as Bittorrent but still a good read. http://www.bearcave.com/misl/misl_tech/msdrm/darknet.htm
Read More...
Believe it or not, you can develop, register and use COM objects with an LUA account [1]. COM objects are typically registered at one of one of two places. HKLM\Software\Classes HKCU\Software\Classes Some people think that COM objects are registered under
Read More...
A frequent question I see pop up on news groups is how to create Unions in managed code for interop with P/Invoke. .NET does not directly support unions but you can use some Marshal magic to get them working. Take the following C union. union Foo { int
Read More...
This is a follow up to an earlier post about COMException error messages. http://blogs.msdn.com/jaredpar/archive/2005/03/25/402386.aspx In my previous post we examined the process by which an HRESULT is converted to a COMException by the CLR. Several
Read More...
This article assumes that you have basic knowledge of COM and apartments. I've talked with several people who found that COM objects they created in their console applications were not destroyed until the application exited. This was causing memory leaks
Read More...
Ran accross a great article on how to use SxS Manifest files to intsall COM objects as Non-Admin. This approach has several limitations Only works an XP SP1 (and higher) and W2K3 (and higher). Requires you to have write access to the directory containing
Read More...