Converting 32Bit COM+ Solution to 64Bit (VS2010)

Besides gazillions of things that can go wrong when converting a COM+ library written in C++ to 64Bit in Visual Studio 2010, the linker may start giving some weird “unresolved external symbol” errors for the autogenerated Proxy/Stub code. The reason for that is, when you change the build target to Win64 for the solution, the…


Back online

It’s been a long time since I have last logged on to this blog site and have completely forgotten about it until today when I decided to clean my junk mail folder and saw lots of mails coming from readers marked as junk for some reason. So apologies to everyone to whom I havent replied back…


Exposing Com Events – C#

With C#’s declerative programming ability it’s relatively easy to expose the types to COM environment. But there are a few thing you must pay attention if you want to raise events from your managed COM component. I’ll not go into the details of COM programming with C# but just focus on events for now. Thanks…

10

EnvDTE – Adding a reference to a project

It was confusing to see a property named “Object” on EndDTE.Project class (which returns an object of type System.Object), especially when the tooltip didnt provide any useful information. (It’s actual type is a ComObject) Anyway, actually it returns an object of type VSLangProj.VSProject (assuming you have a reference to VSLangProj). I was just trying to add…

5

Drag IT

“I really would like to be able to move (drag) that custom control which I have just implemeneted on another custom control (say Panel )” said to myself this weekend… and started to implement MouseMove events… but it should not be that hard and actually it was not. If you just mess with Win32 a…

1

Office 2003

Office 2003 – SP3 is available for download from (published 17/09/07) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B-B9D2-5E3C1132F206&displaylang=en  And the details are here: http://support.microsoft.com/?kbid=923618    

1

Non Serialized Properties

A fellow has asked me the easiest way of NOT serializing a property when using XML serialization… You can not use the NonSerializable attribute for properties because this attribute is only valid for public fields, but there is another attribute in the System.Xml.Serialization namespace which is XmlIgnore. This attribute will tell the xml serializer to…

2

Office Web Components

Was talking about charting components / libraries with a friend today. Just remembered that I have implemented one (a long time ago) with C#, which was nothing much but just a wrapper for OWC. Well, it was OWC 2003  – I think I’m getting old 🙂 – Here is the URL: http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=6dff5ce3-1c2f-42c8-90a5-cf0290b0cffc  PS: Requires OWC…

1

SMO

SMO if a very powerful library, but if you do not have the correct version installed on your machine (like me) it may make you spend your valuable time looking for non-existing errors. The assembly Microsoft.SqlServer.BatchParser is machine (CPU) specific, which means if you have .NET Framework 64Bit (like I do) installed and trying to…


Delegate parameters

Let’s say you have two delegates at hand: delegate void DummyDelegateWithInt(int x); and delegate void DummyDelegateWithObject(object x); Everything seems OK right? But how about the performance issues? that question just crossed my mind. int is a value type where object is a reference type. I just implemented a very simple application that makes method calls through…

6