I’m a .NET developer too. I’m currently working on a hard to code .NET project. A lot of components to manage and classes to implement. On this particular project I need to integrate from Visual Basic 6 COM objects to J# specific components. After some weeks of coding, I can say one truth: .NET interoperability does not exists. Yeah!, as you read!.
I need two interoperability tasks from the .NET framework:
- Convert System.Web.HttpRequest to ASPTypeLibrary.Request, because a I need to use the page request with an old VB6 COM component.
- Convert a java.io.FileOutputStream from J# to System.IO.FileStream into both C# and VB
Both tasks with frustrating results didn’t work in any way. The solution for the System.Web.HttpRequest conversion, was rebuiling the page logic inside an ASP 3.0 page. The solution for the java.io.FileOutputStream conversion was reading the file from the disk instead of a System.IO.MemoryStream instance — faster than reading from the hard drive.
As conclusion, I have just one thing to say. Microsoft never has figured on how make developer friendly the interoperability between their product versions.



