Saturday, December 03, 2005

Something Real

Well, I've received no comments on my blog yet. Obviously, the lack of pictures is the cause. In order to remedy that, I'm posting a screenshot of the COM Interop in mono doing something real. The mono runtime is launched through Visual Studio. It runs a simple C# program that creates an Excel application, displays it, and adds a workbook.

Spent alot of time working on VARIANT marshalling. And this little attribute caused me major pain trying to get the Excel sample working.

Labels:

16 Comments:

Blogger Chris Nystrom said...

Good job!

4:46 AM  
Blogger Federico said...

Hello, I see you are using Visual Studio to develop Mono applications.
How ???
Exists a guide ?

Regards, Federico (federico.giampietro@poste.it)

9:57 AM  
Blogger Jonathan said...

federico,
If you mean C# applications, anything you write should run on mono. I'm using Visual Studio to build/debug the mono runtime itself as I'm adding COM Interop support.

10:31 AM  
Blogger Federico said...

Sorry Jonathan,
I had misinterpreted the images.
I hoped was a way in order to develop mono applications with visual studio that has a powerful debugger and code designer.

I'm tryng to port on Linux a very complex application, but it is impossible using MonoDevelop.

Can you tell me if I can get a copy of Mono projec in Visual Studio format ?
I would be happy for studying of sources and also to give some help

12:20 PM  
Anonymous Anonymous said...

great!!!

3:44 AM  
Anonymous Anonymous said...

Is this a coordinated effort with what Zac Bowling is doing for XPCOM? His plan. Anyway, keep up the good work, it's much appreciated.
-woo

4:21 PM  
Anonymous Anonymous said...

So is it possible to run RCW packaged COM's under linux ? Or would it be possible in future ?

8:18 AM  
Anonymous Anonymous said...

So is it possible to run RCW packaged COM's under linux ? Or would it be possible in future ?

8:18 AM  
Anonymous Martin Kretzschmar said...

Hi Jonathan,

did you see the OpenOffice.org UNO-.Net bridge
(managed C++) and the not-quite-finished-but-good-for-screenshots mono port of it (C# and C)?

It's also heavily based on remoting stuff like RealProxy, etc.

6:20 PM  
Anonymous Anonymous said...

Hello Jonathan,
May you include the source code and command line arguments for mono mcs?.
I have tried this code:
using System;
using Microsoft.Office.Interop.Excel;

public class ExcelDemo {
public static void Main ()
{
Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application();
Console.WriteLine("Version is {0}.", app.Version);
}
}

I have compiled it:

mcs exceldemo.cs -r:

But I have got a message box with "** ERROR **: Method 'Microsoft.Office.Interop.Excel.ApplicationClass:.ctor()' in assembly '...\Microsoft.Office.Interop.Excel.dll contains native code and mono can't run it. The assembly was probably created by Managed C++".

7:59 AM  
Anonymous Anonymous said...

Sorry. The command line is:
mcs exceldemo.cs -r:System.Office.Interop.Excel.dll

Mono version is 1.1.13.

8:02 AM  
Anonymous tom said...

Is there a beta version of your new software available anywhere? I looked on mono-project.com but could not find it.

11:03 AM  
Blogger Jonathan said...

Sorry, I've been away for a while. To answer some questions.

martin: I've seen that. My goal is to get COM Interop working on windows. Then, XPCOM Interop on supported platforms. Finally, other component technologies like Uno. Hopefully, I can put together some API for handling various unmanaged component technologies.

anonymous and Tom: my work has not yet made it into mono. I'm finishing my Master's thesis in March. After that, I should have alot more time to devote to this. There was a patch posted to the mono-devel list a while ago, that can give you an idea of what my status is.

12:28 PM  
Blogger JonathanChambers said...

Hi Jonathan,

This is another Jonathan Chambers. I run an English as a Second Language Department at Shanghai American School in China. We're much more end-users of data analysis apps, but it's always interesting to see what's happening in the development cycle.

I like the fact that you're progressively sharing your experience with coding.

Thanks.

7:54 AM  
Blogger jacksonh said...

OMG THAT IS TEH AWESOME!!1

3:45 PM  
Anonymous Anonymous said...

hi frnd, you done greate job!!
have u any knoledge of web based c compiler..then make my contect!!
at dinesh.rathod@hotmail.com

2:20 AM  

Post a Comment

<< Home